Minitwit
This is an asp.net application created for the course Devops 2022 on ITU.
It uses and ELK stack for logging,
Prometheus and Grafana for monitoring,
and a PSQL database for storage.
Made by:
- Mads Wolf Jespersen (oeje@itu.dk)
- Nicolai Pallund (npal@itu.dk)
- Julian Brandt (jubr@itu.dk)
- Osman Abdinasir Hassan (osha@itu.dk)
- Jakub Sowa (jsow@itu.dk)
Static analysis
Better code
Sonarcloud
Code Climate
Main application
Prerequisites
- Docker
- A PSQL database
- An ELK stack
- (deploy) python
Running (locally)
-
Set environment variables:
- DATABASE_CONNECTION_STRING
- ELASTICSEARCH_CONNECTION_STRING (host + basic authentication)
-
set replicas in the docker-compose file to 1
-
Run docker compose up
Deploying
- Set environment variables:
- SSH_KEY_FOOTPRINT
- DIGITAL_API_TOKEN
- DATABASE_CONNECTION_STRING
- ELASTICSEARCH_CONNECTION_STRING (host + basic authentication)
- Run
python script/deployscripts/deploy_docker_swarm.py
Supporting deployments/applications
See Logging and Monitoring folders' readme's for instructions
PSQL database
Prerequisites
- dotnet-ef cli tool
- Fresh PSQL database
Initialise
- Navigate to aspnet/Minitwit
- set Environment variable "DATABASE_CONNECTION_STRING"
- Run
dotnet ef database update