nusmods icon indicating copy to clipboard operation
nusmods copied to clipboard

Add Rust backend with auth routes

Open chrisgzf opened this issue 2 years ago β€’ 2 comments

In preparation for our future reviews system that makes use of our own database (so that we can get rid of Disqus - they have been injecting ads into our site, bleh), this is a bootstrapped new πŸ¦€RustπŸ¦€ backend.

What's done:

  • NUS auth
    • to test, after running backend, visit: http://localhost:3000/v1/auth/login?callback=http://localhost:3000/v1/auth/user
  • Setting up of routes

What's next:

  • Setting up of the DB (I'm still deciding between Postgres or Clickhouse)
  • Migrating disqus comments to the DB
  • GET api/v1/reviews/:course_id -> Vec<Reviews>
  • POST api/v1/reviews/:course_id: should create review
  • PUT api/v1/reviews/:course_id/:review_id: should edit review
  • DELETE api/v1/reviews/:course_id/:review_id: should delete review

πŸ¦€πŸ¦€πŸ¦€

chrisgzf avatar Dec 17 '23 17:12 chrisgzf

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

Name Status Preview Updated (UTC)
nusmods-export βœ… Ready (Inspect) Visit Preview Dec 17, 2023 5:24pm
nusmods-website βœ… Ready (Inspect) Visit Preview Dec 17, 2023 5:24pm

vercel[bot] avatar Dec 17 '23 17:12 vercel[bot]

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (17c4bc3) 53.24% compared to head (ee789f6) 53.24%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3645   +/-   ##
=======================================
  Coverage   53.24%   53.24%           
=======================================
  Files         271      271           
  Lines        5862     5862           
  Branches     1396     1396           
=======================================
  Hits         3121     3121           
  Misses       2741     2741           

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar Dec 17 '23 17:12 codecov[bot]