A simple API build using Flask for educational purpose.
You should be having python installed in your system. If not go ahead and install python
Now install pipenv
pip install pipenv
You can activate your virtual env with the cmd
pipenv shell
You can install all the dependencies as follows
pipenv install flask flask-sqlalchemy flask-marshmallow marshmallow-sqlalchemy
Product schema is as follows
Product {
id: Integer (Primary Key)
name: String
description: String
price: Float
qty: Integer
}
Get into python shell
and run the following commands
from app import db
db.create_all()