Giter Site home page Giter Site logo

interstellar-soulmates's People

Contributors

bartbucknill avatar dangerdak avatar polyccon avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

polyccon

interstellar-soulmates's Issues

Password encyrption

Using bcrypt, the passwords are hashed before they are stored in our database.

Host our database on heroku

Once the local database is working we can the proceed to setting up heroku.
The following link may be helpful when setting it up:
link
and when connecting to it:
link

Restricted pages

Users should only be able to view /singles, /editprofile, /user-profile if they're logged in (but anyone can see /sign-in and /sign-up)

401 errors

The site looks great - and it's a really nice idea.

Are there any particular login details - I've 'signed up', but am getting 401 errors within the site on any action....

Create handlebars

Starting with header and footer for partials (i.e src/views/partials/header.hbs)

Write database queries

  • sign up (args: email, hashed pwd, returns: nothing): adds the user to users table and creates entry for them in the profiles table
  • update profile (args: profile data, user id, returns: nothing): update user profile in profile table
  • sign in (args: email, returns the hashed password)
  • get profile (args: user id, returns: object with the users profile data)
  • get id?

make app.js

app.js should setup and configure handlebars-express and other middleware, and require and use controllers

Submitting my edited profile takes me to a 401

However, on a later attempt when I got my edited profile working, it submitted but stayed on the same page. Navigating to the save-profile endpoint to give helpful information on the profile submission being successful would be ideal!

Test our routes

Using the supertest module we can write tests for the different routes.

Spike on Session Management

Decide which express middleware to use for session management, and figure out the general parameters of how this will work, such as:

  • which middleware to use

  • how do we get the user id from the cookie (or from combination of cookie session id and session store)

  • how to do session verification

On trying to save profile I get errors (more description below)

The first time I get a 500:
'500: Sorry, we've had a problem on our end'

After going back to my edit profile page and trying to submit, this time I get a 401:
'401: Access Denied'

HOWEVER!

After refreshing the page and signing up again, it worked! ๐Ÿ‘

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.