Skip to content

Latest commit

 

History

History
21 lines (12 loc) · 658 Bytes

README.md

File metadata and controls

21 lines (12 loc) · 658 Bytes

Introduction

This project is a an example of Rocket web framework for a Web API.

The database engine used by the project is SQLite.

Getting Started

First, follow Diesel instructions to install the Diesel CLI.

To create and migrate the database:

  1. Initialize database with diesel setup
  2. Migrate database with diesel migration run

To start the Rocket server:

  1. Install dependencies and build executables with cargo build
  2. Start Rocket server with target/debug/rocket_webapi

Now you can visit http://localhost:3000/api from your browser.