project-startup
v1.2.2
Published
Minimal session-based auth starter using Express, MySQL, React, Vite, and React Router.
Readme
Project Starter
Minimal session-based auth starter using Express, MySQL, React, Vite, and React Router.
Features
- Register with name, email, password
- Login with email and password
- Session-based authentication
- MySQL database
- Vite React frontend
- Protected dashboard
- Logout button
Setup
- Create the database and tables:
mysql -u root -p < db.sql- Copy environment file:
cp .env.example .env- Install dependencies:
backend-project and frontend-projec
npm install- Run locally:
npm run devNotes
- Backend runs on
http://localhost:5000 - Frontend runs on Vite default port
http://localhost:5173 - Vite proxies
/apito the backend# project-starup
