Giter VIP home page Giter VIP logo

spaced_repetition's Introduction

Build Status

InstaFrench

Link: https://stark-river-80170.herokuapp.com/

Description

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.

  • : inputable questions & answers
  • : cleaner UI & UX
  • Screenshots

    Homepage/Login

    full page

    Spaced Repetition Page

    main page

    Tech Stack

    • DB: cloud-hosted MongoDB with MLab

    • Server: Node, Express, Mongoose

    • Client: React, Redux, Thunk

    • Security: Passport, OAuth, Bearer

    Database Structure - Sample Items

    Collections

    users

    {
    	accessToken: 'gfehu7438rr83yr374ry4387r38',
    	googleId: 176374526734,
    	name: 'Test User',
    	score: 12,
    	questions: [{word_id: 6327452, freq: 3}, {word_id: 673462, freq: 1}]
    }
    

    words

    {
    	_id: 6327452,
    	french: 'un',
    	english: 'one'
    }
    

    Endpoints:

    • 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

    spaced_repetition's People

    Contributors

    taiwilkin avatar alexander-poe avatar oampo avatar bookcasey avatar

    Watchers

    James Cloos avatar

    spaced_repetition's Issues

    test-index.js ['GET should return a new word and score']

    I was investigating this some bit. I was curious to see the following

    			res.body.should.have.property('question');
    			res.body.question.should.be.a('object');
    			res.body.question.should.have.property('_id');
    			res.body.question.should.have.property('french');
    			res.body.question.french.should.equal('un');
    			res.body.question.should.have.property('english');
    			res.body.question.english.should.equal('one');
    			res.body.should.have.property('score');
    			res.body.score.should.be.an.integer;
    			res.body.score.should.equal(0);
    
    

    When I saw your /game get function on server, this is kind of what it returned as a response:

    { score: 0 }
    

    Where do you get the question property from? I think it is possibly because I haven't seen how you are creating test words to work with.

    After submitting an answer to the french

    Quick suggestion, is it possible to design a feature such that after I've typed the correct answer, I don't have to delete to write the next answer

    screen shot 2017-02-06 at 2 57 52 am

    A suggestion could be flashing the message on another area of the page or only showing "tre bien" for a few seconds and then deleting or emptying the input value.

    Recommend Projects

    • React photo React

      A declarative, efficient, and flexible JavaScript library for building user interfaces.

    • Vue.js photo Vue.js

      ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

    • Typescript photo Typescript

      TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

    • TensorFlow photo TensorFlow

      An Open Source Machine Learning Framework for Everyone

    • Django photo Django

      The Web framework for perfectionists with deadlines.

    • D3 photo D3

      Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

    Recommend Topics

    • javascript

      JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

    • web

      Some thing interesting about web. New door for the world.

    • server

      A server is a program made to process requests and deliver data to clients.

    • Machine learning

      Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

    • Game

      Some thing interesting about game, make everyone happy.

    Recommend Org

    • Facebook photo Facebook

      We are working to build community through open source technology. NB: members must have two-factor auth.

    • Microsoft photo Microsoft

      Open source projects and samples from Microsoft.

    • Google photo Google

      Google โค๏ธ Open Source for everyone.

    • D3 photo D3

      Data-Driven Documents codes.