|
1 day ago | |
---|---|---|
.. | ||
nginx | 5 months ago | |
web | 5 months ago | |
README.md | 1 day ago |
The 'server' folder contains 2 folders: 'web' and 'nginx'. Both contain the files for starting a docker container
There is a docker-compose file that starts the 2 containers with the correct environment.
To start the server locally, first, run Docker, then navigate to the "server" folder and run
"docker rm smarthubs_docker-web-1;docker image rm smarthubs_docker-web;docker-compose -f .\docker-compose.yml up"
These are 3 docker commands chained together, the first 2 remove existing container and image, the last generates new container and image and hosts them locally. We remove existing
Documentation about the routes and db table sis found wihtin the .py files.
The server is written in Python and uses Flask for a REST API and flask-sqlalchemy for DB (SQLlite)