Team: 40
Contributors: Mohamed Bilel Besrour, Nour Bouzid, Paul Schwind, Ufuk Yagmur, Kevin Nguyen
In this repository is code of the delivery system implemented for the lecture Advanced topics of software engineering. To test and play around with the latest version of our application please visit:
If you also want to test the embedded system, set it up as described in the first ASE exercise, then clone the repository and run:
cd embedded
./setup.sh
python main.py
This will install and run the embedded system.
Readme structure:
- Overview
- Quick start
- Cloud hosting
- Pipeline
Please make sure you have the following Requirements already installed on your computer before attempting to run the application:
- Docker
For a local run without docker, please make sure to include the environment variables for the microservices as follows:
- DELIVERY_MONGO_URL=mongodb+srv://ase40:[email protected]/test
- AUTH_MONGO_URL=mongodb+srv://ase40:[email protected]/test1
In order to run the application in production setting locally, execute the following command:
docker-compose --env-file ./.env up -d
In order to run the application in development mode with Docker, execute the following command:
docker-compose --env-file ./.env -f docker-compose.test.yml up -d
Our mongo database is hosted in Mongodb atlas
All of our microservices and react app are running on Linode cloud hosting service Our Linode server has 4 CPU Cores and 8GB RAM. It is located in Frankfurt Germany.
- at the build stage, the
build
job runs a clean build on all of our spring boot microservices. This job only runs if changes were detected in our microservices folder. This is also the only job that runs in feature branches and not just on the main branch. - at the docker-frontend stage, the
docker-frontend
job builds the frontend image and pushes it to docker hub. This job will only run when changes are detected on the main branch. - at the docker-backend stage, the
docker-backend
job uses jib to build the backend images and pushes them to Docker hub. This job will only run when changes are detected on the main branch. - at the deploy stage, the
deploy
job copies the latest version of our docker-compose file to our Linode server and then runsdocker-compose --env-file ./.env up -d
on our server using ssh. the docker compose file will pull all latest images from docker hub and run them thus having all of our latest changes live.
For more in-depth information, visit the Wiki.