This repository contains an application built using React and showcasing login functionality. The user is asked to Sign In when they first enter the website. To authenticate, the app contacts and API which returns 200 OK if the authentication succeeds and 401 unauthorized if the authentication fails. Upon success, the user is presented with the Private Notes page. A personalised Welcome message appears on this page, together with a Logout button.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
To run this project locally, you need to install yarn.
Clone the GitHub repository locally and install the dependencies:
yarn install
Next, start the development server:
yarn serve
The app can then be accessed by visiting http://localhost:9000/. The authentication API should be running to enable the app to authenticate its users.
- React, Webpack, Babel - The web framework and build environment set up tools
- React Router - Routing
- Material-UI - Styled components
- Fetch API - AJAX library
The following packages were used to facilitate the creation of maintainable and clean code, as well as testing it.