Commit c56fa486 authored by Maxime Chaillet's avatar Maxime Chaillet

Merge branch 'issue53' into 'master'

Issue53

See merge request !59
parents b8415201 ad2576c3
......@@ -18,20 +18,28 @@ The grunFile.js has 2 tasks.
### How to develop
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.
* Fork this project to your github space.
* Change the code to implement a new functionnality or fix issues.
* check js files, create the dev.html file from the dev.tpl.html template.
To test the changes locally on your computer:
* Prepare the project ( 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
* 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/suffix
* Open your browser and hit the starting page at the following address http://localhost/dev.html?DOI=prefix/suffix
Replace prefix and suffix with real values. Note that the stating page is dev.html. In production , the starting page will be index.html.
* Once you are satisfied with your work, prepare the project for production
```
grunt
```
* Submit a merge request on icat repository at https://gitlab.esrf.fr/icat/doi-landing-page
### How to prepare the docker container
* check js files, concatene them, minify them, handle other js dependancies
### How to prepare the docker container locally for testing purpose
* Make sure the porject is prepared for production (check js files, concatene them, minify them, handle other js dependancies)
```
grunt
```
......
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