A full-stack chat application with user authentication and a bot interface.
- User authentication (registration, login)
- Dashboard with user profile
- Chat interface with automated bot responses
- Individual chat history storage for each user
- React.js with TypeScript
- React Router for navigation
- Styled Components for styling
- React Toastify for notifications
- Axios for API requests
- Node.js with Express
- MongoDB with Mongoose ODM
- JWT for authentication
- TypeScript
- Node.js and npm
- MongoDB (local or remote)
-
Navigate to the backend directory:
cd backend -
Install dependencies:
npm install -
Create a
.envfile with the following variables:PORT=5000 MONGODB_URI=mongodb://localhost:27017/chat-app JWT_SECRET=your_jwt_secret_key JWT_EXPIRE=24h FRONTEND_URL=http://localhost:3000 -
Start the development server:
npm run dev
-
Navigate to the frontend directory:
cd frontend -
Install dependencies:
npm install -
Create a
.envfile with the following variables:REACT_APP_API_URL=http://localhost:5000/api -
Start the development server:
npm start
- Register a new account or login with existing credentials
- Navigate to the dashboard to see your profile
- Use the chat interface to interact with the bot
- Your chat history will be saved automatically
MIT