Skip to content

oxiadenine/rocket-webapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

An example of Rocket web framework for a Web API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages