A secure authentication system with React frontend and Express.js backend, featuring JWT tokens, email verification, and password reset.
- 🔐 Secure Authentication - JWT tokens with HTTP-only cookies
- 📧 Email Verification - Account activation via email
- 🔑 Password Reset - Secure password recovery
- 🚪 Multi-device Logout - Sign out from all devices
- 🐳 Docker Support - Complete containerized development
- ⚡ Modern Stack - React, TypeScript, Express.js, MongoDB
Backend: Express.js, TypeScript, MongoDB, JWT, bcrypt, Nodemailer
Frontend: React, TypeScript, Tailwind CSS, Zustand, Vite
Tools: Docker, Bun, Zod validation
- Node.js or Bun
- Docker
- Clone the repository & navigate to the project directory
git clone https://github.com/Sh1v4nk/Simple-Authentication.git
cd Simple-Authentication- Start the application:
docker compose upAccess the app at http://localhost:5173
# Backend
cd backend && bun install && bun run dev
# Frontend (new terminal)
cd frontend && bun install && bun run devSimple-Authentication/
├── backend/
├── frontend/
└── docker-compose.yml
Create .env files in both backend/ and frontend/ directories. See .env.example files for required variables.
The docker-compose.yml includes default environment variables for development.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
Thank you for visiting my Simple-Authentication repository. If you have any suggestions or feedback, feel free to reach out to me.
Connect with me:


