Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/davidzr/surrealdb-rocket-starter
https://github.com/davidzr/surrealdb-rocket-starter
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/davidzr/surrealdb-rocket-starter
- Owner: davidzr
- Created: 2023-10-25T17:14:07.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-25T17:19:38.000Z (about 1 year ago)
- Last Synced: 2024-08-01T22:43:17.169Z (5 months ago)
- Language: Rust
- Size: 161 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-surreal - SurrealDB + Rocket - David Zabala. (Starter Kits)
README
# Rocket App with SurrealDB: TODO App
The project aims to build a basic web application using the Rocket framework, providing the following features:
- [x] Create and manage a list of tasks.
- [ ] Mark tasks as completed.
- [x] Delete tasks.
- [x] Persist data using SurrealDB as the database backend.![Run Dev](./.github/todo.png)
## Requirements
- [Rust](https://www.rust-lang.org/tools/install)
- [Cargo](https://www.rust-lang.org/tools/install)
- [SurrealDB](https://surrealdb.com/)## Setup
1. **Clone the Repository**: Clone the repository to your local machine.
2. **Start SurrealDB**:
```bash
surreal start memory -A --auth --user root --pass root --bind 0.0.0.0:8001
```![SurrealDB](./.github/surreal.png)
3. Start the Rocket web server:```bash
cargo run
```
![Rocket](./.github/rocket.png)## Usage
- Visit http://localhost:8000 to use the application.
- Add new tasks and mark them as completed.
- Delete tasks as needed.
- The data is persisted using SurrealDB.