| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
This is a template for spinning up a REST server in Flask for API first development. Use this repo as a template repo.
The server is tested in our travis account for following versions of Python
The server dependencies specified in Pipfile.
The image is pushed to dockerhub {$LINK}, every push to git repository triggers a new build at the dockerhub.
$ docker build -t {$IMAGE}:{$TAG} .
$ docker run -it -d -p {$EXTERNAL_PORT}:8000 {$IMAGE}:{$TAG}
To setup the dev env use the following commands.
$ python3 -m venv env $ source env/bin/activate (env) $ pip install --cache-dir .pip.cache/ --progress-bar emoji --upgrade pip setuptools (env) $ pip install --cache-dir .pip.cache/ --progress-bar emoji --requirement requirements/dev.txt (env) $ cp .env.example .env
To setup the db use the following commands.
(env) $ python manage.py db init
To make a migration run the folowing commands
(env) $ python manage.py db migrate -m $MESSAGE (env) $ python manage.py db upgrade
onlinejudge95
| Back | FazBrowse Home | New Git URL |