2021-05-11 17:46:55 +02:00
2021-05-04 22:52:44 +02:00
2021-05-04 22:22:08 +02:00
2021-05-04 20:47:40 +02:00
2021-05-03 18:44:56 +02:00
2021-05-11 17:46:55 +02:00
2021-05-11 16:58:07 +02:00
2021-05-04 22:58:38 +02:00

Web Application Engineering Assignment 2 -- Group 04

Technology Stack

  • Angular for our frontend
  • Django for our backend
  • Database: sqlite3

We chose this specific stack because all of our team members have previously worked with this combination of Angular/Django and there is a lot of documentation for it online. We chose sqlite3 as persistence layer because it comes out of the box with django. Django also provides a built-in ORM mapper. Our db schema is very simple, sqlite3 handles it well.

Linting

We use the ng lint command to lint our frontend. For this to work, angular-cli must be installed. After that run the following in the frontend folder:

$ ng lint

Setup

Our project can be run with a simple docker-compose up from the project's root folder. By default it will pull the required images from docker hub. To instead build the images locally, comment out the build keys inside the docker-compose.yml file.

The docker-compose.yml file builds the images by calling the Dockerfiles in the folders frontend and backend. The frontend is served via nginx on port 4200. The backend is served via gunicorn on port 8000.

The container's database folder is mounted to ./container_db of the host's docker-compose folder. Therefore, the database is persisted at the client's filesystem.

The docker images are available at:

Description
A twitter bot which retweets news subscribed to via RSS
Readme 1.1 MiB
Languages
TypeScript 53.2%
Python 26.7%
HTML 11.2%
CSS 4.3%
JavaScript 3.2%
Other 1.4%