A React application with authentication (Register & Login) using Formik, Yup, Axios, react-hot-toast, and json-server as a fake backend.
- ✅ User registration with validation
- ✅ Login with email & password
- ✅ Error handling (email exists / wrong password)
- ✅ Toast notifications
- ✅ Responsive UI with Tailwind CSS
- ✅ Fake backend using json-server
Clone the repository and install dependencies:
git clone https://github.com/cheetah-10/Authify.git
cd Authify
npm installMake sure you have json-server installed globally or locally. If not installed, run:
npm install -g json-serverNow start the server:
json-server --watch db.json --port 5000This will run the backend at:
👉 http://localhost:5000/users
npm run devBy default, the app runs on: 👉 http://localhost:5173
src/
├── assets/ # Images (avatars, icons, etc.)
├── components/ # Reusable components
├── pages/ # Login, Register, NotFound pages
└── App.jsx # Main entry point
db.json # Fake backend database
GET /users→ Fetch all usersPOST /users→ Register new userGET /users?email=...&password=...→ Login check
This project is licensed under the MIT License.



