- Node.js
- npm or yarn
- Python (if required for additional backend tasks)
-
Navigate to the backend directory:
cd CSTech-Assignment-Backend -
Install the dependencies:
npm install
-
Create a
.envfile in theCSTech-Assignment-Backenddirectory and add the following environment variables:PORT=5000 JWT_SECRET=your_jwt_secret MONGO_URI=your_mongodb_uri
-
Start the backend server:
npm run dev
-
Navigate to the frontend directory:
cd CSTech-Assignment-Frontend -
Install the dependencies:
npm install
-
Create a
.envfile in theCSTech-Assignment-Frontenddirectory and add the following environment variables:REACT_APP_API_URL=http://localhost:5000
-
Start the frontend development server:
npm run dev
The frontend will be available at
http://localhost:5173.
- Open your browser and navigate to
http://localhost:5173. - Register a new user or login with existing credentials.
- Add agents using the "Add Agents" form.
- Upload a CSV file using the "Upload CSV" form to distribute tasks among agents.
npm run dev: Starts the backend server with nodemon for development.npm start: Starts the backend server.
npm run dev: Starts the frontend development server.npm run build: Builds the frontend for production.npm run lint: Runs ESLint to check for linting errors.npm run preview: Previews the production build.
- bcryptjs
- cookie-parser
- cors
- csv-parser
- dotenv
- express
- jsonwebtoken
- mongoose
- multer
- nodemon
- @tailwindcss/vite
- axios
- react
- react-dom
- react-router-dom
- tailwindcss
This project is licensed under the MIT License.