Skip to content

slaveofcode/rust-example-restful

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust Example Restful API using Actix Web

This is an example implementation of restful api built using Rust language and Actix-Web framework.

Spec

  • Postgresql
  • Diesel (ORM)
  • Actix Web (Framework)

Setup

Install Dependencies

cargo update

Prepare Environment

Copy the example configuration at .env.example to .env and adjust it into your local config values

Migrations

The migration tools is using diesel_cli, so you'll need to install it first by

cargo install diesel_cli

View Help

diesel migration

Create new Migration

diesel migration generate <your-migration-name>

Run Migration

diesel migration run

Redo Migration

diesel migration redo

About

Rust Implementation of Restful API using Actix Web

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages