Coder Social home page Coder Social logo

journey-planner's Introduction

Build Status

journey-planner

Trugley, your favorite travel app for telling people where you're gonna be, who you're gonna be with, and how you're gonna get there.

Set up

Follow instructions in Install doc.

(journey-planner) $ nvm use
(journey-planner) $ yarn
(journey-planner) $ npm start

Running tests

(journey-planner) $ npm test

Project Structure

Name Description
.env Your API keys, tokens, passwords and database URI.
.eslintrc Rules for eslint linter.
.gitignore Folder and files ignored by git.
.travis.yml Configuration files for continue integration.
app.js The main application file.
package.json NPM dependencies.
package-lock.json Contains exact versions of NPM dependencies in package.json.

journey-planner's People

Contributors

swoloszynski avatar btrav avatar

Watchers

James Cloos avatar

Forkers

ncd2dq

journey-planner's Issues

Set up unit tests for models

  • Set up test database created at runtime
  • Eg tests that creation fails if a field is missing
  • Using frameworks mocha and chai
  • Start familiarizing yourself with the testing concepts of "mocking" and "stubbing" and "spies"

Add logout

  • Add a POST endpoint that executes passport's logout function
  • Once logged out, redirect to homepage
  • If logged in, show logout link on profile page

Add fields to signup form

  • Add field for all non-nullable fields (or remove the field) instead of using email as placeholder

Add linter

Add jslint and configure to run with tests

Display if logged in on home page

  • If not logged in, display text "not logged in"
  • Check for logged in cookie?
  • Ping logged in API endpoint
  • If logged in, display text "Logged in as [username]"

Set up database locally

  • Decide which database to use (likely MySQL)
  • Local set up - initialize and first migration
  • Document initialization instructions

Architect and ticket password reset

  • forgot password route / form
  • add reset token field and reset expiration field to db schema
  • forgot password POST endpoint -> create and save new reset token for user
  • send reset email with link
  • reset route/form that takes the reset token as a param and shows form for new password OR invalid token page
  • reset POST endpoint -> receive new password, hash and save it to the database, and expire the reset token
  • redirect to login or login automatically

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.