nss-day-cohort-41 / nutshell-my-pretty-rose-tree

nutshell-my-pretty-rose-tree created by GitHub Classroom
0 stars 2 forks source link

added register and login functionality #13

Closed jamessushum closed 4 years ago

jamessushum commented 4 years ago

Description

Added API methods to GET/POST users data and event-listeners/functions handling registration of new users/signing-in existing users with appropriate authentications. Minor HTML button/header text changes.

Type of change

Testing Instructions

Pull branch to local machine, initiate JSON-Server, Serve to localhost, click on "create a new account" button and fill out form entries to test new user registration, fill out login section with existing account info and click "sign in" to test existing user log-in, upon clicking both "submit" and "sign in" buttons the page should redirect to dashboard. To check if user id was saved in session storage, in chrome dev-tools navigate to "application" tab and select session storage dropdown with localhost, key-value pairs should appear on the right hand side window.

Checklist: