- Introduction
- Installation
- Usage Instructions
- Credits and Versioning
This is a credential authentication application that was written to experiment with a fullstack MERN application that makes use of JSON web token
(JWT) authentication.
It generates a JWT token during login.
This token is stored in local storage using Web APIs and is deleted again upon logging out of the system.
Most of the functionality is linked to a authorisation level
that is linked to the user's role which is stored in the payload of the JWT toke.
The project was developed as an exercise in a boot camp
and has developed a deep understanding of all aspects of the development in the creator.
The project was bootstrapped with Create React App.
To install the application simply clone it or download it from this repository.
There is a frontend and backend directory in the root directory.
Run the command yarn install
in both directories and the application is ready to use.
To start the application enter the command yarn start
in the frontend directory and yarn dev
in the backend directory.
This will start the React frontend as well as the backend Express server.
Finally a config.env
file will be necessary in the config
folder in the backend
sub-folder.
This file should have the following three variables in it:
MONGODB_CONNECTION_STRING
= Your MongoDB database connection stringPORT
= 8000JWT_SECRET
= Any random string that will be used to encode the JWT token
Once the installation is complete, the application is basic and intuitive to use.
Will be greeted by a landing page where the user will register the first time and thereafter login to the application.
After these two steps each page will have a navigation bar at the top
that the user will utilise to get the required functionality.
Throughout the application, the home button can be used to return to this page.
Once the desired functions have been utilised,
it is important for the user to logout using the appropriate menu option to ensure the session is suspended.
This app was developed and written by Johann Jansen van vuuren and version v1.0.0 was released on 22 June 2023.