Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“Œ Flask SQLite CRUD API

This is a simple Flask + SQLite API project that demonstrates how to perform basic CRUD (Create, Read, Update, Delete) operations. The project is designed to be tested using Postman (no frontend/webpage).



πŸš€ Features
Create an item (Name, Email)
Read all items
Update an item by ID
Delete an item by ID
SQLite database (my_database.db) for persistence



πŸ—‚οΈ Project Structure

β”œβ”€β”€ app.py                # Main Flask app (routes)
β”œβ”€β”€ databaseconnection.py # Database connection helper
β”œβ”€β”€ models.py             # Database operations (CRUD logic)
β”œβ”€β”€ my_database.db        # SQLite database (auto-created)
└── README.md             # Project documentation



βš™οΈ Installation & Setup

  1. Clone this repository
git clone <repo_url>
cd flask-crud-api
  1. Create a virtual environment (recommended)
python -m venv venv
source venv/bin/activate   # Mac/Linux
venv\Scripts\activate      # Windows
  1. Run the server
python app.py


πŸ› οΈ Testing with Postman

Test endpoints:

POST /items β†’ Add data
GET /items β†’ View all data
PUT /items/ β†’ Update data
DELETE /items/ β†’ Delete data

About

This is a simple Flask + SQLite API project that demonstrates how to perform basic CRUD (Create, Read, Update, Delete) operations.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages