Skip to content

Olah-Barbershop/API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The REST API used for our website

License: GPL v3   GitHub Release  

Documentation

Check out the API documentation here

Instructions

Clone the repository and install the dependencies

git clone https://github.com/Olah-Barbershop/API.git
cd API
cargo build

Add your MongoDB url and database name to a .env file

DATABASE_URL=[your MongoDB url]
DATABASE_NAME=[the name of your database]

(Optional) Change the port in Rocket.toml if needed

You'll need an SSL certificate. Add your certificate to certs.pem and your private key to key.pem.

Start the server

cargo run

About

The Oláh Barbershop API, rewritten in Rust!

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages