Commit 45507218 authored by Maxime Chaillet's avatar Maxime Chaillet

fix readme.md file

parent aaec0d5f
#DOI landing page
##Introduction
# DOI landing page
## Introduction
This project handles the management of the doi landing page at ESRF.
A person is searching for information from a given DOI code. He/she can go to datacyte [search page](https://search.datacite.org/) and will enter the doi code he/she is looking at. In response, from his own database, the datacyte server will redirect the search to the doi landing page which is located on esrf server.
......@@ -21,47 +21,47 @@ The grunFile.js has 2 tasks.
Below are the steps to follow after the implementation of a new functionnality or for debugging purpose. In this mode, we use the dev.html page instead of the index.html.
* check js files, create the dev.html file from the dev.tpl.html template.
'''
```
grunt dev
'''
```
* copy the www folder (not all files are needed but it is easy) to apache folder
'''
```
sudo rm -fr /var/www/html && sudo cp -r www/. /var/www/html/
'''
```
* access the doi landing page with the following address http://localhost/dev.html?DOI=prefix/siffix
### How to prepare the docker container
* check js files, concatene them, minify them, handle other js dependancies
'''
```
grunt
'''
```
* prepare the docker container
'''
```
cd rootOfTheProject
sudo ./build.sh
'''
```
### How to test the page in production setting (ie using the docker container)
you can install the container locally to your docker instance
* start docker daemon
'''
```
sudo /etc/init.d/docker start
'''
```
* install the docker container created before.
'''
```
cd rootOfTheProject
sudo ./run.sh
'''
```
* retrieve the name of the container which has been installed locally listing all none running containers
'''
```
sudo docker ps -a
'''
```
* start the given container
'''
```
sudo docker docker start nameOfTheContainer
'''
```
* access the doi landing page http://localhost:8092/DOIprefix/DOIsuffix
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment