Backend System Manual - bounswe/2021SpringGroup2 GitHub Wiki
Backend App System Manual
The backend app is dockerized and it already includes the build bundle of the frontend app. To build and run the backend app, building and running using the Dockerfile is enough. Docker and docker-compose should be already installed to use it.
There are three steps to build and run it using the Dockerfile.
- Copy
db_dump_07-01-2022_16_58_48.sqlunder2021SpringGroup2. - Go to
2021SpringGroup2directory. - Run
docker-compose buildon terminal. It builds the container. - Run
docker-compose up -don terminal. Now the container is up onlocalhost:9000 - Run
docker-compose logsto see if the tests are passed. - After tests are passed, run
sudo docker cp db_dump_07-01-2022_16_58_48.sql 2021springgroup2_database_1:/tmp/to copy dump file into database container. - Run
sudo docker exec -i 2021springgroup2_database_1 pg_restore -U rebound_user -f /tmp/db_dump_07-01-2022_16_58_48.sqlto restore dump.