Skip to content

chemyl/note_service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

backend server

Note service is a binary crate written in Rust. This is a basic representation of a backend web-server, designed for use in web applications thanks to its support for WebAssembly.

Rust Version actix-web Version tokio Version sqlx Version serde Version Build Status

🚀 Features

  • 🧮 Async CRUD operations.
  • 🌐 Actix-Web core.
  • ♻️ sqlx support.

📦 Installation

  1. Make sure you have Rust
  2. Install sqlx tools:
cargo install sqlx-cli --features sqlite
cargo sqlx prepare 
  1. Run sqlx migration
cargo sqlx migrate run
  1. Build and run the project
cargo build
cargo run
  1. Open bind http://127.0.0.1:8080

  2. Use paths

  • GET /notes
  • GET /notes/{id}
  • POST /notes
  • PUT/notes/{id}
  • DELETE /notes/{id}

Releases

No releases published

Packages

No packages published

Languages