Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 908 Bytes

README.md

File metadata and controls

29 lines (23 loc) · 908 Bytes

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