An open API service indexing awesome lists of open source software.

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

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
```