This is a simple inventory management system written in Python using Flask and SQLAlchemy.
- Python 3.x
- Flask
- Flask-SQLAlchemy
- Flask-Migrate
-
Clone the repository.
-
Navigate to the project directory.
-
Create a virtual environment and activate it.
-
Install the requirements:
pip install -r requirements.txt
-
Set up the database:
export FLASK_APP=run.py export FLASK_ENV=development flask db init flask db migrate -m "Initial migration." flask db upgrade
-
Run the application:
python run.py
- Add Item:
POST /items
- View Items:
GET /items
- Update Item:
PUT /items/<id>
- Delete Item:
DELETE /items/<id>
{
"name": "Item Name",
"quantity": 10,
"price": 19.99
}