Skip to content

justahero/rust-book-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Books API

A simple CRUD application written in Rust, based on this tutorial by Sean Wragg.

It uses the following tools

  • rocket web framework
  • diesel ORM framework with Sqlite3
  • serde for JSON serialization

The application requires Rust nightly

rustup default nightly
rustup update && cargo update

The web application uses Diesel with a Sqlite3 database. Install the diesel-cli tool first

cargo install diesel_cli --no-default-features --features "sqlite"

Setup

To use the application the Sqlite3 database has to be setup first.

# create folder
mkdir ./data
# run migrations
diesel migration run

To compile and run the application, execute:

cargo run

Resources

About

A basic CRUD application in Rust with Diesel (Sqlite3)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages