https://github.com/mbrsagor/flaskrestapi
Python micro web framework Flask which develops restful APIs services basically CRUD operations.
https://github.com/mbrsagor/flaskrestapi
flask python rest-api
Last synced: 3 months ago
JSON representation
Python micro web framework Flask which develops restful APIs services basically CRUD operations.
- Host: GitHub
- URL: https://github.com/mbrsagor/flaskrestapi
- Owner: mbrsagor
- Created: 2020-12-29T14:21:56.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-12-29T17:15:20.000Z (over 1 year ago)
- Last Synced: 2025-01-12T13:25:19.234Z (over 1 year ago)
- Topics: flask, python, rest-api
- Language: Python
- Homepage:
- Size: 244 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Flask Rest API
> Flask restful API project.
###### Instructions
- Python3.8
- Flask
- postgresql
Open your bash or terminal or ZSH then follow the instruction for ru the project in your local development server or somewhere else.
Here, the following setup for Mac I think linux should be same.
```
git clone https://github.com/mbrsagor/flaskRestapi.git
cd flaskRestapi
virtualenv venv --python=python3.8
source venv/bin/activate
pip install -r requirements.txt
python app.py
```
##### Migrate sqlite.db
```pip install Flask-SQLAchemy ```
```python
from models import db
db.create_all()
```
##### Set environment variables in terminal
```bash
export FLASK_APP=app.py
export FLASK_ENV=development
```