Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chemyl/note_service
web app based on actix_web
https://github.com/chemyl/note_service
actix-web rust rust-lang serde-json sqlx tokio
Last synced: 28 days ago
JSON representation
web app based on actix_web
- Host: GitHub
- URL: https://github.com/chemyl/note_service
- Owner: chemyl
- License: mit
- Created: 2024-11-18T05:05:33.000Z (about 1 month ago)
- Default Branch: master
- Last Pushed: 2024-11-22T08:50:42.000Z (about 1 month ago)
- Last Synced: 2024-11-22T09:29:40.101Z (about 1 month ago)
- Topics: actix-web, rust, rust-lang, serde-json, sqlx, tokio
- Language: Rust
- Homepage:
- Size: 31.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
cargo install sqlx-cli --features sqlite
cargo sqlx prepare
create dir -> `migrations`
cargo sqlx migrate add create_notes_table
add migration scriptadd db file note_service.db
add `.env`cargo sqlx migrate run
cargo run
curl http://127.0.0.1:8080/notes
curl -X POST http://127.0.0.1:8080/notes -H "Content-Type: application/json" -d '{"title": "Test Note", "content": "This is a test note."}'