| Crates.io | sepora-backend |
| lib.rs | sepora-backend |
| version | 0.1.1 |
| created_at | 2025-11-24 08:54:02.507521+00 |
| updated_at | 2025-11-24 08:54:02.507521+00 |
| description | Rust backend API for Sepora: provides endpoints for managing todos, calendars, and diaries with pluggable storage. |
| homepage | |
| repository | https://github.com/sepora-dev/sepora-backend |
| max_upload_size | |
| id | 1947547 |
| size | 57,186 |
Sepora-backend is a Rust backend API for Sepora. It provides endpoints for managing todos, calendars, and diaries, with pluggable storage backends.
# Clone the repository
git clone https://github.com/sepora-dev/sepora-backend.git
cd sepora-backend
# Build the project
cargo build --features local
# Run the server
cargo run --features local --bin server
The server will start on http://localhost:8080.
GET /todos - List all todosPOST /todos - Create a new todo
{ "title": "string", "completed": false }PUT /todos/{id} - Update a todo (partial update supported)
{ "title": "string" } or { "completed": true } or bothDELETE /todos/{id} - Delete a todoGET /diaries - List all diary entriesPOST /diaries - Create a new diary entry
{ "content": "string" }PUT /diaries/{id} - Update a diary entryDELETE /diaries/{id} - Delete a diary entryGET /calendars - List all calendar eventsPOST /calendars - Create a new calendar event
{ "title": "string", "date": "YYYY-MM-DD" }PUT /calendars/{id} - Update a calendar eventDELETE /calendars/{id} - Delete a calendar eventStores data in JSON files under the ./data directory.
cargo run --features local --bin server
Store data in a GitHub repository.
cargo run --features github --bin server
# Run tests
cargo test --features local
# Run with test script
sh test.sh
sepora-backend/
├── bin/
│ ├── server_main.rs # Server entry point
│ └── worker_main.rs # Worker entry point (placeholder)
├── src/
│ ├── lib.rs # Library root
│ └── server.rs # API handlers and routes
├── data/ # Local storage directory (gitignored)
├── Cargo.toml
└── README.md
actix-web - Web frameworkactix-cors - CORS middlewaresepora-core - Core data structures and utilitiessepora-storage - Storage abstraction layerserde - Serialization/deserializationanyhow - Error handlingMIT License © 2025 sepora-dev, Q0tzly