https://github.com/mbrsagor/flask-curd-app
The project in a flask curd app and restful API
https://github.com/mbrsagor/flask-curd-app
api flask flask-api flask-apis flask-restful flask-sqlalchemy python-3
Last synced: about 2 months ago
JSON representation
The project in a flask curd app and restful API
- Host: GitHub
- URL: https://github.com/mbrsagor/flask-curd-app
- Owner: mbrsagor
- Created: 2021-04-01T10:09:58.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-19T16:18:15.000Z (about 5 years ago)
- Last Synced: 2025-08-08T05:47:37.531Z (11 months ago)
- Topics: api, flask, flask-api, flask-apis, flask-restful, flask-sqlalchemy, python-3
- Language: HTML
- Homepage:
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Flask-curd-app
> The following steps will walk you thru installation on a Mac. Linux should be similar. It's also possible to develop on a Windows machine, but I have not documented the steps. If you've developed the Flask apps on Windows, you should have little problem getting up and running.
##### Prerequisites
- At lest Python clear concept.
- Frontend like HTML5, CSS3, Bootstrap.
- Basic Database
#### Install project on your local development server.
1st make sure in your system install python3.8 and virtualenv. Then open your terminal and please follow the instructions.
```base
git clone https://github.com/mbrsagor/flask-curd-app.git
cd flask-crud-app
virtualenv venv --python=python3.8
source venv/bin/activate
pip install -r requirements.txt
python app.py
```
### Migarte `sqlite.db`
Active your virtualenv then open shell after that, follow the commands
```python
from models import db
db.create_all()
```
### Set environment variables in terminal
```bash
export FLASK_APP=app.py
export FLASK_ENV=development
```
###### Run the app
```base
flask run
```
### Install SQL db
```base
pip install Flask-SQLAchemy
```