The REST API used for our website
Check out the API documentation here
Clone the repository and install the dependencies
git clone https://github.com/Olah-Barbershop/API.git
cd API
cargo buildAdd 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