Link: https://stark-river-80170.herokuapp.com/
If you are into learning new things, and if those things are the numbers 1-10 in french, then this app is your future. Made using React, Redux, Node this app will not only teach you un through dix but will make sure you a logged in to do so.
All seriousness aside, 2.0 will have these features.
-
DB: cloud-hosted MongoDB with MLab
-
Server: Node, Express, Mongoose
-
Client: React, Redux, Thunk
-
Security: Passport, OAuth, Bearer
{
accessToken: 'gfehu7438rr83yr374ry4387r38',
googleId: 176374526734,
name: 'Test User',
score: 12,
questions: [{word_id: 6327452, freq: 3}, {word_id: 673462, freq: 1}]
}
{
_id: 6327452,
french: 'un',
english: 'one'
}
-
app.get('/game')
- returns an initial question for a logged-in user
- protected endpoint
-
app.put('/game')
- updates user's list of questions based on true/false input from client
- returns a new question for the user
- protected endpoint
-
app.get('/auth/google')
- initializes Google login process
-
app.get('auth/login/callback')
- continues Google login process