Skip to content

Authentication using json web token in react and express

Notifications You must be signed in to change notification settings

felixmburudev/jwt-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

JWT Manager Manage JSON Web Tokens (JWTs) with React and Express.

Table of Contents Introduction Features Installation Usage Configuration Contributing License Introduction JWT Manager is a project that demonstrates how to implement JSON Web Tokens (JWTs) for authentication in a web application. This repository includes a React frontend and an Express backend, showcasing the usage of JWTs for secure user authentication.

Features User authentication with JWTs Secure token generation and validation React frontend with authentication workflows Express backend demonstrating JWT usage Installation To run this project locally, follow these steps:

Clone the repository:

bash Copy code $ git clone https://github.com/felixmburudev/jwt-manager.git $ cd jwt-manager Install dependencies for both the frontend and backend:

bash Copy code $ cd client $ npm install $ cd ../jwt-express $ npm install Usage Start the Express server:

bash Copy code $ cd jwt-express $ node server Launch the React frontend:

bash Copy code $ cd ../jwt-react $ npm run dev Visit http://localhost:5174 in your browser to access the application.

Configuration For JWT configuration:

The jwt-express/.env directory contains settings for JWT secret keys etc. Ensure environment variables are appropriately set for sensitive information like secret keys and database URLs. Contributing Contributions are welcome! If you want to contribute to this project, please follow these guidelines:

Fork the repository Create your branch: git checkout -b feature/fooBar Commit your changes: git commit -am 'Add some fooBar' Push to the branch: git push origin feature/fooBar Submit a pull request License This project is licensed under the MIT License.

This README highlights the project's purpose in managing JWTs using React for the frontend and Express for the backend. You can expand on each section further or include additional details specific to your JWT authentication implementation or any other unique features of your project.

About

Authentication using json web token in react and express

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published