This repository contains the backend code for the CodeSnap project. The backend is built using Flask, a lightweight WSGI web application framework in Python.
- Python
- Flask
- Flask SQLAlchemy
- Flask Marshmallow
- Flask Restfull
- Flask CORS
- Step into folder
cd backend
- Create virtual environment
virtualenv venv
- Activate the venv
source venv/bin/activate
- Install the dependencies
pip install -r requirements.txt
-
Copy the .env.example to .env and setup your DB on .env
-
Setup the DB
SQLALCHEMY_DATABASE_URI="mysql+mysqlconnector://DB_USERNAME:[email protected]:3306/DB_DATABASE"
- Run the migrations
flask db upgrade
- Run the seeders
flask seeders all
- Run the flask app
flask run