jsonzilla / download_server_control

API for management of control versioning applications

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Download Server Control

Control user access to your application or any versioned file/link.

License

This project is licensed under the terms of the Apache license.

Install the requirements:

A mongo database is required to run the server. Get one from MongoDB Atlas, for free.

pip install -r requirements.txt

Run

uvicorn app.main:app --reload

Test

python -m pytest -W ignore::DeprecationWarning
pytest --cov=app --cov-report=html
python -m pytest_watch

Config .env

Configure the location of your MongoDB database in a .env file:

MONGO_URL="mongodb+srv://<username>:<password>@<url>/<db>?retryWrites=true&w=majority"
BUCKET_NAME="configzero-jsonzilla"

Need to create a user at database to run the server:

mongo <db> --eval "db.users({username: '<username>', password: '<bcrypt_password>', email: '<email@email>'});"

Swagger

To see the Swagger documentation, visit: http://localhost:8000/docs

Documentation of libraries

To see the documentation, visit:

WIP

About

API for management of control versioning applications

License:Other


Languages

Language:Python 99.5%Language:Dockerfile 0.5%