Skip to content

BBesrour/ASEDeliverySystem

Repository files navigation

ASE delivery system

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:

  1. Overview
  2. Quick start
  3. Cloud hosting
  4. Pipeline

Overview

Architecture

architecture

Requirements

Please make sure you have the following Requirements already installed on your computer before attempting to run the application:

  • Docker

Quick start

For a local run without docker, please make sure to include the environment variables for the microservices as follows:

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

Cloud hosting

Mongo Atlas

Our mongo database is hosted in Mongodb atlas

Linode

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.

Pipeline

pipeline Our pipeline runs as follows:

  1. 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.
  2. 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.
  3. 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.
  4. at the deploy stage, the deploy job copies the latest version of our docker-compose file to our Linode server and then runs docker-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.

Wiki

For more in-depth information, visit the Wiki.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published