Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 655 Bytes

README.md

File metadata and controls

20 lines (14 loc) · 655 Bytes

Rusty Leaf Backend

This backend is written in rust and will be deployed with Shuttle

To run this project you need to install

  • Rust

  • Shuttle Runtime

  • Login with your shuttle account

  • Copy Mongodb URL and paste it to .env file as MONGO_URI (see .env.sample for more info)

  • run cargo shuttle run

Currently implemented Endpoints

  • GET /user/<username>
  • POST /user - to create new user ( registering )
  • POST /login - to login into the account ( gets JWT Token back as response )
  • POST pages/create-page - to create page, it will require JWT Token
  • GET pages/get-page/<username>/<slug> - to get the page