An open API service indexing awesome lists of open source software.

https://github.com/maltsev-dev/note_service

Web app based on actix_web
https://github.com/maltsev-dev/note_service

actix-web rust rust-lang serde-json sqlx tokio

Last synced: 3 months ago
JSON representation

Web app based on actix_web

Awesome Lists containing this project

README

        

# 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](https://img.shields.io/badge/rust-1.83.0%20-green)
![actix-web Version](https://img.shields.io/badge/actix_web-4.0%20-orange)
![tokio Version](https://img.shields.io/badge/tokio-1.0%20-orange)
![sqlx Version](https://img.shields.io/badge/sqlx-0.8.2%20-blue)
![serde Version](https://img.shields.io/badge/serde-1.0%20-blue)
![Build Status](https://github.com/chemyl/note_service/actions/workflows/rust.yml/badge.svg)

## 🚀 Features
- 🧮 Async CRUD operations.
- 🌐 Actix-Web core.
- ♻️ sqlx support.

## 📦 Installation
1. Make sure you have [Rust](https://www.rust-lang.org/tools/install)
2. Install `sqlx` tools:
```bash
cargo install sqlx-cli --features sqlite
cargo sqlx prepare
```
3. Run `sqlx` migration
```bash
cargo sqlx migrate run
```
4. Build and run the project
```bash
cargo build
cargo run
```
5. Open bind http://127.0.0.1:8080

6. Use paths
* GET `/notes`
* GET `/notes/{id}`
* POST `/notes`
* PUT`/notes/{id}`
* DELETE `/notes/{id}`