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

https://github.com/slaveofcode/rust-example-restful

Rust Implementation of Restful API using Actix Web
https://github.com/slaveofcode/rust-example-restful

actix-web diesel-rs restful-api rust rust-lang

Last synced: 8 months ago
JSON representation

Rust Implementation of Restful API using Actix Web

Awesome Lists containing this project

README

          

# 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

### Run Migration

diesel migration run

### Redo Migration

diesel migration redo