/cs501-t1-assessment

Intake assesment for CS501 T1 Software Engineering Practicum

Primary LanguagePythonMIT LicenseMIT

Flask JWT Auth

Quick Start

Basics

  1. Activate a virtualenv
  2. Install the requirements

Set Environment Variables

Update project/server/config.py, and then run:

$ export FLASK_APP=project.server
$ export APP_SETTINGS="project.server.config.DevelopmentConfig"

or

$ export FLASK_APP=project.server
$ export APP_SETTINGS="project.server.config.ProductionConfig"

Create the tables and run the migrations:

$ flask db init
$ flask db migrate
$ flask db upgrade

Run the Application

$ flask run

So access the application at the address http://localhost:5000/

Want to specify a different port?

$ flask run --host=0.0.0.0 --port=5000