Skip to content
/ api-rs Public

Barebones API server using Rust Rocket framework

License

Notifications You must be signed in to change notification settings

marirs/api-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

api-rs

Bare-bones API server using Rust Rocket framework. You can add API Key verification using JWT and/or database, etc by taking the barebones project from here. you can also add as many endpoints you would want.

If you are looking for an API server with database and api key verification etc, you can check out my other Repo.

Requirements

  • Rust 1.52+ (Stable)

Running

  • Build
cargo b
  • Run

Start with server defaults

cargo run

Start with a config file

cargo run -- -c config.yml

Generate SSL cert

sudo openssl req -x509 -nodes -days 30 -newkey rsa:2048 -keyout key.pem -out cert.pem

License: MIT

Releases

No releases published

Packages

 
 
 

Languages