https://github.com/akshay-rajan/cart
Simple Cart Application using FastAPI and Jinja for CRUD Operations
https://github.com/akshay-rajan/cart
crud fastapi jinja2 python rest-api
Last synced: 2 months ago
JSON representation
Simple Cart Application using FastAPI and Jinja for CRUD Operations
- Host: GitHub
- URL: https://github.com/akshay-rajan/cart
- Owner: akshay-rajan
- Created: 2025-03-22T17:48:55.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-03-23T10:34:54.000Z (over 1 year ago)
- Last Synced: 2025-06-21T01:41:24.777Z (about 1 year ago)
- Topics: crud, fastapi, jinja2, python, rest-api
- Language: HTML
- Homepage:
- Size: 122 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cart


## Features
- **FastAPI Framework**: High-performance API built with FastAPI.
- **Jinja2 Templates**: Server-side rendering with Jinja2.
- **CRUD Operations**: Create, read, update, and delete items in cart.
- **Static File Serving**: Easily serve assets including CSS, JavaScript, and images via FastAPI.
## Screenshots
## Setup
1. **Clone the repository:**
```bash
git clone https://github.com/akshay-rajan/cart.git
cd cart
```
2. **Create a virtual environment:**
```bash
python -m venv venv
```
3. **Activate the virtual environment:**
On Windows:
```bash
venv\Scripts\activate
```
On macOS/Linux:
```bash
source venv/bin/activate
```
4. **Install dependencies:**
```bash
pip install -r requirements.txt
```
5. **Run the application:**
```bash
fastapi dev main.py
```
## Project Structure
```
|- main.py -- Main FastAPI application.
|- models.py -- Data models for items.
|- database.py -- In-memory database of items.
|- templates/ -- Jinja2 HTML templates.
|- static/ -- Static assets (CSS, images).
```