Skip to content

BaseAuth is a FullRest API Flask application that includes role-based user management with flask-praetorian.

Notifications You must be signed in to change notification settings

xzegga/AuthBase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Base Auth 1.0

BaseAuth is a FullRest API Flask application that include role based user management with flask-preatorian.

Development Environment

At the bare minimum you'll need the following for your development environment:

  1. Python
  2. PostgreSQL

It is strongly recommended to also install and use the following tools:

  1. virtualenv

Local Setup

The following assumes you have all of the recommended tools listed above installed.

1. Clone the project:

$ git clone https://github.com/AiTSV/AuthBase.git
$ cd InterpLinks

2. Create and initialize virtual environment for the project:

$ py -3 -m venv env
$ pip install -r requirements.txt

3. Upgrade the database:

$ alembic upgrade head

4. Run the development server:

$ python wsgi.py

Development

If all went well in the setup above you will be ready to start hacking away on the application.

Database Migrations

This application uses Alembic for database migrations and schema management. Changes or additions to the application data models will require the database be updated with the new tables and fields. Additionally, ensure that any new models are imported into the consolidated models file at main.models. To generate a migration file based on the current set of models run the following command:

$ alembic revision --autogenerate -m "<a description of what was modified>"

Review the resulting version file located in the alembic/versions folder. If the file is to your liking upgrade the database with the following command:

$ alembic upgrade head

For anything beyond this workflow please read the Alembic documentation.

Management Commands

Management commands can be listed with the following command:

$ python manage.py

These can sometimes be useful to manipulate data while debugging in the browser.

About

BaseAuth is a FullRest API Flask application that includes role-based user management with flask-praetorian.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •