Authentication system with NodeJS (ExpressJS) + ReactJS + TailwindCSS + SQLite
git clone https://github.com/harshdoshi999/node-react-auth.git
cd node-react-auth
Navigate to the project's root directory and run the following commands:
npm install
cd backend
node server.js
The backend will run on http://localhost:5000
.
Navigate to the project's root directory and run the following commands:
cd frontend
npm install
npm start
The frontend will run on http://localhost:3000
.
You can access the login page in your browser by navigating to http://localhost:3000/login
.
Method | Route | Description |
---|---|---|
POST | /api/auth/signup |
Register a new user |
POST | /api/auth/login |
Login a user |
POST | /api/auth/forgot-password |
Send a password reset link |
POST | /api/auth/reset-password |
Reset the user's password |
Path | Component | Description |
---|---|---|
/signup |
Signup.jsx | User registration page |
/login |
Login.jsx | User login page |
/forgot-password |
ForgotPassword.jsx | Forgot password page |
/reset-password/:token |
ResetPassword.jsx | Password reset page |
- Start Backend:
cd backend && node server.js
- Start Frontend:
cd frontend && npm start