Skip to content

web app using react for frontend and express for backend with JSON Web Token (JWT) for session handling

Notifications You must be signed in to change notification settings

schererleander/expressjs-login

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

expressjs-login

This project is a simple web application built with React for the frontend and Express for the backend, providing user authentication and profile information retrieval. The backend utilizes JSON Web Tokens (JWT) for session handling, and MySQL is used as the database to store user account information.

Getting started

  1. Clone the repository:

    git clone https://github.com/schererleander/expressjs-login.git
    cd expressjs-login
  2. Install dependencies for both frontend and backend:

    cd frontend
    npm install
    cd ../backend
    npm install
  3. Set up your MySQL database and update the connection configuration in server.js.

  4. Start the backend server:

    cd backend
    node server.js
  5. Start the React app:

    cd frontend
    npm start

Warning:

This project is for development purposes only and has certain security considerations:

  • Password Storage: Passwords are stored as plain text in the database.
  • HTTPS: For development reasons, this project does not use HTTPS.
  • Token: Token is saved as a cookie.

References:

Use tailwindcss in react app

ExpressJS Getting started

ExpressJS Basich routing

Getting started with JSON Web Tokens

About

web app using react for frontend and express for backend with JSON Web Token (JWT) for session handling

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published