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
[x] New feature (non-breaking change which adds functionality)
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:
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] My changes generate no new warnings or errors
[x] I have added test instructions that prove my fix is effective or that my feature works
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: