https://github.com/sofyan48/python-boilerplate
BOILERPLATE PYTHON
https://github.com/sofyan48/python-boilerplate
Last synced: 6 months ago
JSON representation
BOILERPLATE PYTHON
- Host: GitHub
- URL: https://github.com/sofyan48/python-boilerplate
- Owner: sofyan48
- Created: 2018-11-05T02:36:09.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T02:59:07.000Z (over 3 years ago)
- Last Synced: 2025-10-09T17:05:04.185Z (6 months ago)
- Language: Python
- Homepage:
- Size: 35.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# COCKROACH BOILERPLATE WITH JWT PROJECT
## Environment File
move env.local to .env see example value
``` bash
APP_NAME = Cockroach Boilerplate
APP_HOST = 127.0.0.1
APP_PORT = 5000
SECRET_KEY = YOUR SECRET
MEMCACHE_HOST=127.0.0.1
MEMCACHE_PORT=11211
FLASK_DEBUG = True
JWT_SECRET_KEY = YOUR SECRET
SWAGGER_URL = '/api/docs'
SWAGGER_API_URL = 'http://petstore.swagger.io/v2/swagger.json'
```
## Local Development
Installing Requirements
``` bash
pip install -r requirements.txt
```
run server
``` bash
python manage.py server
```
## With Virtualenv
Installing virtualenv firts
```
virtualenv -p python3 env
```
Activate virtualenv
```
# in linux or mac
source env/bin/activate
# in Windows
\env\Scripts\activate.bat
```
Installing Requirements
``` bash
pip install -r requirements.txt
```
run server
``` bash
python manage.py server
```