Skip to content

c-hack/ums-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

9c6348c · Mar 11, 2020

History

4 Commits
Feb 21, 2020
Mar 11, 2020
Nov 11, 2019
Nov 11, 2019
Feb 21, 2020
Feb 21, 2020
Feb 21, 2020
Feb 21, 2020
Nov 11, 2019
Mar 11, 2020
Nov 11, 2019
Nov 11, 2019
Feb 21, 2020

Repository files navigation

UMS Api

The api for the c-hack user management system

Prerequesits

  • python 3.7
  • pipenv [python 3.7]

Preparations:

# Setup pipenv and install dependencies
pipenv install --dev
#pipenv install #when not wanting dev depedencies.

Start server for development:

First start:

source "$(pipenv --venv)/bin/activate"
export FLASK_APP=ums_api
export FLASK_DEBUG=1  # to enable autoreload
export MODE=debug
# export MODE=production
# export MODE=test

flask create_db

# start server
flask run

Subsequent starts:

flask run

Shell.nix

Instead the file shell.nix can be used with the program nix-shell:

nix-shell

Then everything is set up for you and you only need to start the server:

flask run

Installing in a Production Environment

See flask wsgi documentation. The preparations as shown above are required.

About

The C-Hack User Management API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published