Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fmanimashaun/react-authentication

This project is a demonstration of how to create a React application that showcases the latest version of 'react-router-dom (v6.4)' while also illustrating the implementation of authentication and authorization flows using Redux Toolkit for persistent state management.
https://github.com/fmanimashaun/react-authentication

react react-router-v6 redux-toolkit

Last synced: 14 days ago
JSON representation

This project is a demonstration of how to create a React application that showcases the latest version of 'react-router-dom (v6.4)' while also illustrating the implementation of authentication and authorization flows using Redux Toolkit for persistent state management.

Awesome Lists containing this project

README

        

![](https://img.shields.io/badge/fmanimashaun-green)

# 📗 Table of Contents

- [📖 About the Project](#about-project)
- [🛠 Built With](#built-with)
- [Tech Stack](#tech-stack)
- [Key Features](#key-features)
- [🚀 Live Demo](#live-demo)
- [💻 Getting Started](#getting-started)
- [Setup](#setup)
- [Prerequisites](#prerequisites)
- [Install](#install)
- [Usage](#usage)
- [Run tests](#run-tests)
- [Deployment](#deployment)
- [👥 Authors](#authors)
- [🔭 Future Features](#future-features)
- [🤝 Contributing](#contributing)
- [⭐️ Show your support](#support)
- [🙏 Acknowledgements](#acknowledgements)
- [❓ FAQ (OPTIONAL)](#faq)
- [📝 License](#license)

# 📖 React Authentication Project

This project is a demonstration of how to create a React application that showcases the latest version of 'react-router-dom (v6.4)' while also illustrating the implementation of authentication and authorization flows using Redux Toolkit for persistent state management.

## 🛠 Built With

### Tech Stack

- [React](https://reactjs.org/)
- [React Router Dom](https://reactrouter.com/web/guides/quick-start)
- [Redux Toolkit](https://redux-toolkit.js.org/)
- [React Redux](https://react-redux.js.org/)
- [Redux-toolkit](https://redux-toolkit.js.org/)
- [PropTypes](https://www.npmjs.com/package/prop-types)
- [font Awesome](https://fontawesome.com/)
- [jwt-decode](https://www.npmjs.com/package/jwt-decode)

### Key Features

- [x] Showcase the capabilities of react-router-dom v6.4 for seamless navigation.
- [x] Implement authentication and authorization flows using Redux Toolkit for state management.

(back to top)

## 🚀 Live Demo

- [Live Demo Link](https://github.com/fmanimashaun/react-authentication)



(back to top)

## 💻 Getting Started

### Prerequisites

- [Optional] Install git bash to your machine to enable you to clone this repo.
- install Visual Studio to be able to host a local live version.
- Install a browser to view the local live version.

To get a local copy up and running follow these simple example steps.
### Setup

Clone this repository to your desired folder:

```sh
cd your-desired-folder
git clone https://github.com/fmanimashaun/react-authentication.git
open the repo folder `react-authentication`
```

### Install

Install this project dependencies with:

```sh
npm install
```

### Usage

To run the project, execute the following command:

```sh
npm run start
```

Runs the app in the development mode.\
Open [http://localhost:5173/react-authentication](http://localhost:5173/react-authentication) to view it in your browser.

The page will reload when you make changes.\
You may also see any lint errors in the console.

### Run tests

To run tests to check the lint errors, run the following command:

- To check for CSS lint errors, run the following command:

```sh
npm run stylelint
```

- To check for JS lint errors, run the following command:

```sh
npm run eslinter
```

To run unit tests, run the following command:

```sh
npm run test
```

Launches the test runner in the interactive watch mode.\
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.

### Deployment

You can deploy this project to github pages by running the following command:

```sh
npm run deploy

```

Builds the app for production to the `dist` folder.\
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.\
and it is automatically deployed to the github page.

See the section about [github page deployment](https://github.com/gitname/react-gh-pages) for more information.

(back to top)

## 👥 Authors

👤 **Engr. Animashaun Fisayo**

- [GitHub](https://github.com/fmanimashaun)
- [Twitter](https://twitter.com/fmanimashaun)
- [LinkedIn](https://www.linkedin.com/in/fmanimashaun/)
- [Website](https://fmanimashaun.com)

(back to top)

## 🔭 Future Features

- [ ] Improve on the data submission using react-router v6.4 hooks

(back to top)

## 🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the [issues page](../../issues/).

(back to top)

## ⭐️ Show your support

If you like this project and want to support me, you can give a ⭐️ to this repo!

(back to top)

## 🙏 Acknowledgments

I would like to thank [Dave Gray](https://github.com/gitdagray) for laying the foundation for me to build on.

(back to top)

## ❓ FAQ (OPTIONAL)

(back to top)

## 📝 License

This project is [MIT](./LICENSE) licensed.

(back to top)