Check requirements.
Make sure to have python3 installed.
- Create a virtual environment.
python3 -m venv .venv
- Activate the virtual environment.
source venv/bin/activate
- Create .env file
touch .env
- Add following environment variable
SECRET_KEY=your_secret_key
DB_URI=sqlite:///site.db
- Install dependencies.
pip install -r requirements.txt
-
Uncomment the line at 98 in main.py, when running the server for first time for creating the database. (Important: Make sure to comment it again when its done, otherwise on every run new db will be created)
-
Run the application.
python3 main.py