Update README.md

This commit is contained in:
Stephan Porada 2020-07-29 08:47:36 +02:00
parent 3f81d33156
commit d8c2fdc15f

View File

@ -26,11 +26,11 @@ The actual data can be found here: https://gitlab.ub.uni-bielefeld.de/sporada/bu
## Build the app/start the app with docker ## Build the app/start the app with docker
1. Move into the app folder with `cd path/to/bundesdata_web_app/app`. 1. Move into the app folder with `cd path/to/bundesdata_web_app`.
2. Create a file called _secrets.json_ following the _secrets\_example.json_ structure. 2. Copy the _.env.tpl_ file and rename the copy to _.env_.
3. Navigate into the repository root with `cd path/to/bundesdata_web_app`. 3. Set a secret key for django and set the database parameters like shown in the _.env.tpl_ file.
4. Start the web app with `docker-compose up`. Doing this the first time will take some time because all the needed images (postgres, python and nginx) will have to be downloaded. Also all the packages defined in the Pipfile will be installed in the according image. This terminal will stay open for now to show the log messages of the three running containers. 4. Start the web app with `docker-compose up`. Doing this the first time will take some time because all the needed images (postgres, python and nginx) will have to be downloaded. Also all the packages defined in the requirements.txt will be installed in the according image. This terminal will stay open for now to show the log messages of the three running containers.
5. Visit [127.0.0.1:8000](http://127.0.0.1:8000) to verfiy that the files have been successfully imported. The website should look pretty nice now. 5. Visit [127.0.0.1:8000](http://127.0.0.1:8000) to verfiy that the the web application is up and running..
## Import the data into the database ## Import the data into the database