Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kingakeem/flask-api-tutorial
A tutorial that demonstrates how to use Flask and SQLAlchemy
https://github.com/kingakeem/flask-api-tutorial
flask flask-api flask-smorest flask-sqlalchemy orm poetry python python3 rest-api sqlalchemy sqlalchemy-python
Last synced: 12 days ago
JSON representation
A tutorial that demonstrates how to use Flask and SQLAlchemy
- Host: GitHub
- URL: https://github.com/kingakeem/flask-api-tutorial
- Owner: KingAkeem
- Created: 2023-10-16T12:44:43.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-19T15:12:26.000Z (about 1 year ago)
- Last Synced: 2023-10-20T12:43:58.906Z (about 1 year ago)
- Topics: flask, flask-api, flask-smorest, flask-sqlalchemy, orm, poetry, python, python3, rest-api, sqlalchemy, sqlalchemy-python
- Language: Python
- Homepage:
- Size: 134 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# flask-api-tutorial
## Description
This repository is based on the telcado course, https://teclado.com/rest-apis-flask-python/.
There have been some changes to improve the codebase which includes, but is not limited to:
- type hints
- poetry
- shell scripts to simplify management of docker and poetry## Dependencies
### Using `poetry`
- `poetry install` from the root dirtectory### Using `venv` (virtual environment)
1. `python -m venv venv`
2. `source venv/bin/activate`
3. `pip install -r requirements.txt`## Starting server
### Using `poetry`
- `poetry run flask run`### Using `venv`
While inside the virtual environment,
- `flask run`