https://github.com/rajgoesout/ci_cd_server_flask
Backend repository for CI/CD webinar @HackJH
https://github.com/rajgoesout/ci_cd_server_flask
github hackathon hackjh localhackday microsoft mlh
Last synced: 19 days ago
JSON representation
Backend repository for CI/CD webinar @HackJH
- Host: GitHub
- URL: https://github.com/rajgoesout/ci_cd_server_flask
- Owner: rajgoesout
- License: mit
- Created: 2020-04-02T14:11:31.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-08T10:09:02.000Z (about 5 years ago)
- Last Synced: 2024-03-02T14:17:30.252Z (about 1 year ago)
- Topics: github, hackathon, hackjh, localhackday, microsoft, mlh
- Language: Python
- Homepage: https://flaskk-demo-api.herokuapp.com/api
- Size: 76.2 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CI/CD Server Flask

## Getting Started
Fork this repo to your GitHub account, then clone it.
```sh
git clone https://github.com/your-github-username/CI_CD_server_flask
```cd into the project directory, set up environment variables and bootstrap the project:
```sh
cd CI_CD_server_flask
export MY_SECRET_KEY='something-really-secret'
export FLASK_APP=autoapp.py
export FLASK_DEBUG=1
python3 -m venv venv
source venv/bin/activate
pip install -r requirements/dev.txt
```Run the following commands to create your app's database tables and perform the initial migration:
```sh
flask db init
flask db migrate
flask db upgrade
```Run the tests locally:
```sh
flask test
```Run server
```sh
flask run
```## Deployment
In your production environment, make sure the `FLASK_DEBUG` environment variable is unset or is set to `0`, so that `ProdConfig` is used.
## Prerequisites
- Python (>=3.7)
- git
- heroku account## Credits
This repository is a modification of gothinkster's flask-realworld-example-app:
https://github.com/gothinkster/flask-realworld-example-app