https://github.com/laforetmoreno/multichat
Exemple project using NodeJS, ReactJS, SocketIO, Docket e MongoDB.
https://github.com/laforetmoreno/multichat
docker docker-compose mongodb mongoose nodes reactjs redux socketio storybook
Last synced: 3 months ago
JSON representation
Exemple project using NodeJS, ReactJS, SocketIO, Docket e MongoDB.
- Host: GitHub
- URL: https://github.com/laforetmoreno/multichat
- Owner: laforetmoreno
- Created: 2020-02-06T14:38:45.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-24T01:21:59.000Z (over 3 years ago)
- Last Synced: 2025-05-29T19:50:45.980Z (about 1 year ago)
- Topics: docker, docker-compose, mongodb, mongoose, nodes, reactjs, redux, socketio, storybook
- Language: JavaScript
- Homepage:
- Size: 5.36 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 46
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ChatIO
## Description
Exemple project using NodeJS, ReactJS, SocketIO, Docket e MongoDB.
## Dependencies
- Node.js 10+
- MongoDB - (I'm using Mongo Atlas to facilitate)
## Envs
### Server
- PORT=PORT
- MONGOURI=mongodb+srv://moreno:moreno@cluster0-nqtoh.mongodb.net/test?retryWrites=true&w=majority
### Client
- REACT_APP_API_URL=http://localhost:8080
## Running the project
### Server
1. `cd server`
2. `cp .env.default .env` (And alter vars as needed)
3. `npm i && npm start`
### Client
2. `cd client && npm i && npm start`
## Running the project with Docker compose
1. `docker-compose up`
## Running storybook
1. `npm run storybook`
## Consultation routes
Rooms
1. `/rooms` List of all rooms created
2. `/rooms/:name` List of room by name
Users
1. `/users` List of all user created
2. `/users/:id` List of room by id
Messages
1. `/messages` List of all messages sent