Skip to content

Latest commit

 

History

History
42 lines (22 loc) · 859 Bytes

README.md

File metadata and controls

42 lines (22 loc) · 859 Bytes

Environment variables

Inside the root folder, provide a .env file with the following contents:

FLASK_APP=app.app

FLASK_ENV=development || production || testing

JWT_SECRET_KEY="your_secret_jwt_string"

DATABASE_URL=your_database_URI (only needed if FLASK_ENV=production)

Installing dependencies

From the vertech-email-backend folder:

python3 -m venv .venv

. .venv/bin/activate

pip install -r requirements.txt

Creating the database tables / Performing migrations

From the vertech-email-backend folder:

. .venv/bin/activate

flask db init
flask db migrate
flask db upgrade

Running the project

From the vertech-email-backend folder:

flask run --debug

Swagger UI Docs

You can go to http://localhost:5000/api/swagger-ui for a full documentation in the api