GithubHelp home page GithubHelp logo

johannjvanvuuren / cooltech Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 12.42 MB

A full stack web application (MERN) that authorises and authenticates users in a fictional company using JWT authentication. The purpose of the project is to deepen experience in MERN development and JWT authentication.

JavaScript 91.09% CSS 0.08% Pug 0.20% HTML 1.11% SCSS 7.50%

cooltech's Introduction

Cool Tech Credential Authentication System v1.0.0

Index

  1. Introduction
  2. Installation
  3. Usage Instructions
  4. Credits and Versioning

1. Introduction

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.

2. Installation

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 string
  • PORT = 8000
  • JWT_SECRET = Any random string that will be used to encode the JWT token

3. Usage Instructions

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.

Landing page

Registration page

Login page

After these two steps each page will have a navigation bar at the top
that the user will utilise to get the required functionality.

Home page

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.

Logout confirmation

4. Credits and Versioning

This app was developed and written by Johann Jansen van vuuren and version v1.0.0 was released on 22 June 2023.

cooltech's People

Contributors

johannjvanvuuren avatar dependabot[bot] avatar

Watchers

 avatar

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.