Skip to content

Androusf/vertech-email-backend

 
 

Repository files navigation

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

About

Backend hg8

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 96.0%
  • Mako 2.3%
  • Dockerfile 1.2%
  • Shell 0.5%