Giter Club home page Giter Club logo

habit-tracker's Introduction

Personal website

Set up

git clone https://github.com/codyromano/codyromano.git
cd codyromano

Running in Prod

npm start
open http://localhost:80/

Running in Dev

node index.js
open http://localhost:8081/

habit-tracker's People

Contributors

codyromano avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

habit-tracker's Issues

No indication of expired Passport sessions

Steps to reproduce:

In order to add, update or remove habits the user must have an active Facebook session. Sessions in Habit Tracker are managed through the Node module Passport. If you are inactive for a while and visit the page on your phone, your session will have expired. However, unless you reload the page, you will still see your profile. In this state, AJAX requests will not succeed because the user lacks authorization.

Solution:

Use the Facebook JavaScript SDK to detect expired sessions and redirect the user to the /auth/facebook/ route, which will renew the session if the Passport session has expired.

Some demoted habits can't be un-demoted

Steps to reproduce:

  1. Create a habit and level up to 3 or 4
  2. Slack off in the habit until you are demoted to level 1
  3. Mark the habit as complete
  4. The habit go back to level 1 on its own after ~10 seconds

Facebook IDs are parsed as floats

Facebook IDs are parsed as floats before being stored in Dynamo. The length of the numeric ID surpasses the floating point precision limits of JavaScript. The ID needs to be treated as a string on the server, the client and in Dynamo.

Possible to create blank habits

It's possible to create a habit with a blank title and/or frequency. I believe this causes a clientside error that prevents other habits from being rendered. Ensure that validation for new habits prevents these blank values.

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.