This is just a boilerplate code for people to get started with Flask, SQLAlchemy and SQLite3 database (with a user table). Make sure you have the sqlite3
cli tool installed
On Debian or Debian-based distros like Ubuntu, Pop!_OS, Linux Mint, etc
sudo apt install -y sqlite3
On Fedora
sudo dnf install sqlite
On Arch or Arch-based distros
You guys know it already XD
yay -S sqlite
- Clone this repo
cd MAD2
- Create a virtual environment
python3 -m venv .venv
. .venv/bin/activate
- Install the dependencies
pip install -r requirement.txt
- Run it
python app.py
- Clone this repo (if haven't already)
cd MAD2/client
- Install the dependencies
npm install
npm run dev
sqlite3 database/site.db
- When inside the sqlite3 cli, run this command first
.mode column
(thank me later) - To view all the tables
.tables
- To query all
select * from user;
- Make sure you have docker installed
./deploy.sh