A simple task management application using Django, FastAPI, and Flask to demonstrate basic CRUD (Create, Read, Update, Delete) operations. The app features a clean and responsive UI styled with Bootstrap 5.
- List all tasks in a table format.
- Add new tasks using a form on a separate page.
- Edit and update existing tasks.
- Delete tasks with a confirmation alert.
- Styled with Bootstrap 5 for a responsive and clean UI.
1. Django
- django
- django-bootstrap-v5
2. FastAPI
- fastapi
- uvicorn
- sqlalchemy
- jinja2 (for HTML templating)
3. Flask
- flask
- flask-sqlalchemy
- Bootstrap 5 (via CDN)
Ensure you have Python 3.x installed on your system.
git clone https://github.com/Periyzat/API_Cruds.git
python -m venv .venv
source .venv/bin/activate (On Windows use .venv\Scripts\activate)
- For Django:
pip install django django-bootstrap-v5
- For Fast API:
pip install fastapi uvicorn sqlalchemy jinja2
- For Flask:
pip install flask flask-sqlalchemy
This project usesSQLite as the default database, which is lightweight and file-based, making it ideal for development and testing environments.
-
Django: Automatically sets up an SQLite database
(db.sqlite3)when you run migrations.python manage.py migrate -
Fast API: Creates an SQLite database file
(tasks.db)when you run the application. -
Flask: Automatically generates an SQLite database
(db.sqlite3)when you run the application.
Django: python manage.py runserver
Fast API: uvicorn main:app --reload
Flask: flask run
- Open the browser and navigate to the corresponding localhost address.
- Use the interface to create, update, and delete tasks.
- Pull requests are welcome. For major changes, please open an issue first to discuss the proposed updates.
- This project is licensed under the MIT License.