A group chat application with user authentication, session management, user theme preference, a custom emoji tray, and the Tenor API.
- React
- MongoDB
- express-session (npm package)
- socket.io (npm package)
- Tenor GIF API
- Intersection Observer API
- Node.js (v14 or higher)
- MongoDB
- Tenor API key
-
Clone the repository:
git clone https://github.com/gogorya/group.git cd group -
Install dependencies:
cd group-chat npm install cd ../group-chat-server npm install
-
Create a
.envfile in /group-chat-server with the following keys:PORT=8080 DATABASE_URL=mongodb://localhost:27017/your-db-name SESSION_KEY=your-session-key SESSION_STORE_KEY=your-session-store-key TENOR_KEY=your-tenor-api-key
-
Run the development server:
# /group-chat npm start # /group-chat-server npm run start_local
-
Build the React application and move the build folder:
# /group-chat npm run build mv build/ ../group-chat-server/ -
Running the production build:
# /group-chat-server npm run build_local