648448ebdc482e83efbebd72996dadd34c3e0eb7
CMT
Starting the application
cd backend
fastapi run --reload app/main.py
DB
MySQL
-- MySQL db setup
cat db_setup.sql | mysql -u root -p
-- table setup
cat db_table_setup.sql | mysql -u admin -p CMT
Postgresql
# Installation - Arch
sudo pacman -Syu postgresql
sudo dnf install postgresql-server postgresql-contrib # fedora
# Initialising db cluster
sudo -u postgres initdb -D /var/lib/postgres/data # Arch
sudo postgresql-setup --initdb # fedora
# enable + start service
sudo systemctl enable --now postgresql
# Creating user
sudo -u postgres createuser -P appuser
# Creating db owned by this user
sudo -u postgres createdb -O appuser db_name
# Test user + db creation
psql "postgresql://appuser:secret@localhost:5432/appdb"
Description
Languages
Python
95.2%
Mako
4.5%
Dockerfile
0.3%