jacksonludwig / cse-416-sporadic-api Goto Github PK
View Code? Open in Web Editor NEWBackend server for the Sporadic website.
Backend server for the Sporadic website.
for retrieveUser, check if the user matches token and only send back full data if it does, otherwise don't send sensitive info
just need to copy paste what is done in confirm email
we will need update user to set profile picture, add subs, update last login, etc
currently needed so we can at least fetch all banned users
subscribe and unsubscribe are almost identical. One route can be used for both, or at least the function could be broken down into more modular pieces.
something like sort=top
need to add a check for if the user is a mod on the platform they are trying to add a quiz to
In order to ensure unique platform names we must enforce case insensitivity to ensure duplicates are not generated. Furthermore, when any GET requests for a platform are retrieved they should also be converted into a case insensitive standard to obtain a valid platform.
remove logic from routers to keep them from getting too long
CSE-416-Sporadic-API/src/models/Quiz.ts
Line 17 in cac0935
upon starting make score NULL and timeSubmitted be the time started
That way we only access this data for a specific quiz
currently 500 errors will be returned if cognito gives a 400, this can be fixed with an extra try-catch.
when a user starts a quiz, we need to save the time they started. The quizzesTaken
field could be updated to include timestamps. In the submitQuiz
route, we will check the timestamp.
Create an API request to pull a collection of quiz cards.
Here is the general flow of pulling:
check if user banned -> check if user is mod
this will only be used by admins, so maybe we can restrict it to them just cause
at some point we need to figure out how to deal with profile pics/banners and hook up with S3
since we're using _id from mongo, mongo will throw an error if an invalid object id is provided to the confirm email route.
the given ID should be validated before sending it to mongo so we don't throw a 500 error, and instead throw a 400.
Create the routes for handling an upvote/downvote. Correspondingly make ts file that will apply the corresponding change to the quiz within the database.
Once it is complete add Postman examples for us to test with.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.