File size: 1,074 Bytes
e14041b
 
 
 
 
 
 
 
 
d044ca3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e14041b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
---
title: Quick Notes
emoji: 📝
colorFrom: blue
colorTo: green
sdk: docker
pinned: false
---

# Quick Notes MVP

Quick Notes is a beginner-friendly portfolio project that demonstrates full CRUD with a FastAPI backend, SQLite database, and a vanilla HTML/CSS/JavaScript frontend.

## Stack

- Backend: FastAPI
- Database: SQLite
- Frontend: HTML, CSS, Vanilla JavaScript
- Deployment target: Hugging Face Spaces (Docker)

## Core Features

- Create note
- View all notes (latest first)
- Edit note
- Delete note
- Store and display timestamps (`created_at`, `updated_at`)

## Nice Features

- Search notes by keyword
- Character counter
- Copy note button
- Dark mode toggle

## Database Schema

`notes(id, content, created_at, updated_at)`

## API Endpoints

- `POST /notes`
- `GET /notes`
- `PUT /notes/{id}`
- `DELETE /notes/{id}`

## Run Locally

```bash
pip install -r requirements.txt
uvicorn app:app --reload
```

Open `http://127.0.0.1:8000`.

## Docker

```bash
docker build -t quick-notes .
docker run -p 7860:7860 quick-notes
```

Open `http://127.0.0.1:7860`.