Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

centosci/ci-user-backend

Repository files navigation

Backend for CentOS CI project-onboarding

APIs for ci-user-frontend consumption

To run the application in development mode, run the following from the application root

Install python and pip

sudo apt install python3

sudo apt install python3-pip

Create a virtual environment

pip3 install --user virtualenv

virtualenv venv

source venv/bin/activate

Install dependencies

pip3 install -r requirements.txt

Export environment variables using either of the following

  1. Export variables from the command line
  2. or install autoenv and create a .env file as such:
    source venv/bin/activate
    export FLASK_APP="app.py"
    export FLASK_DEBUG=1
    export APP_SETTINGS="config.DevelopmentConfig"
    export SECRET_KEY="some_secret_key"
    export DATABASE_URL="postgresql://abc:xyz@localhost:5432/ci_onboarding"

Start the application

flask run

To run tests

python -m pytest

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published