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.
-
Clone the repository:
git clone https://github.com/schererleander/expressjs-login.git cd expressjs-login
-
Install dependencies for both frontend and backend:
cd frontend npm install cd ../backend npm install
-
Set up your MySQL database and update the connection configuration in
server.js
. -
Start the backend server:
cd backend node server.js
-
Start the React app:
cd frontend npm start
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.