Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mewebstudio/flask-rest-boilerplate
Flask Rest API Boilerplate
https://github.com/mewebstudio/flask-rest-boilerplate
flask jwt jwt-auth jwt-authentication postgresql python rest rest-api sqlalchemy swagger swagger-ui
Last synced: 2 days ago
JSON representation
Flask Rest API Boilerplate
- Host: GitHub
- URL: https://github.com/mewebstudio/flask-rest-boilerplate
- Owner: mewebstudio
- License: mit
- Created: 2020-10-07T15:02:38.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-02-03T21:29:47.000Z (almost 4 years ago)
- Last Synced: 2024-11-17T20:54:05.351Z (2 months ago)
- Topics: flask, jwt, jwt-auth, jwt-authentication, postgresql, python, rest, rest-api, sqlalchemy, swagger, swagger-ui
- Language: Python
- Homepage:
- Size: 14.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# flask-rest-boilerplate
###### Installation
```bash
pip install -r requirements.pip
```for development
```bash
cp .env.dev .env
```for production
```bash
cp .env.prod .env
```###### Migrate DB
```bash
$ python manage.py db init
$ python manage.py db migrate
$ python manage.py db upgrade
```###### Load dummy data
```bash
$ python fixtures.py
```###### Mailing example
```bash
from flask_mail import Message
from settings import maildef send_email():
msg = Message(
subject='Hello',
sender=('Sender Name', '[email protected]'),
recipients=['[email protected]'],
html='Hello,
body
',
)
mail.send(msg)
```