Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

diesel_demo

diesel+rocket web rest api

This is a REST API project template that uses Rocket framework with Diesel ORM backed up with mysql database.

  • You need nightly version of Rust for Rocket. rustup default nightly
  • Install diesel_cli.
       apt get install libsqlite3-dev
       apt get install libmysqlclient-dev
       apt get install libpq-dev
       cargo install diesel_cli
    
  • Run database migration from your project directory. First make sure you have a working database url in your .env file. disel migration run
  • Ignite your diesel powered rocket api cargo run --bin main

some code from mgattozzi

About

diesel+rocket web api

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages