TechFix is a fictional project with homepage, login with access & refresh JWT tokens, role based accesability of features, redux rtk caching, optimistic UI updates, data on MongoDB.
- React
- Vite
- Tailwind
- Shadcn
- MongoDB
- Node.js
- Express
- React router
- Redux RTK
- Clone the both front-end & backend repos
git clone https://github.com/mndgs1/first-mern-app
git clone https://github.com/mndgs1/first-mern-app-frontend
- Install dependencies on both repos
npm install
- Setting up db
4.1. Create MongoDB clutter set ur DATABASE_URI to the connection string. 4.2. Create access & refresh tokkens with cmd > node > require("crypto").randomBytes(64).toString("hex") to ACCESS_TOKEN_SECRET & REFRESH_TOKEN_SECRET
- Run both projects
npm run dev