- Nodejs - adventurous I/O for the backend.
- Express - fast node.js network application framework [@tjholowaychuk].
- MongoDB - Database
- Moongose - MongoDB ORM
- Socket.io - Socket.io
- ReactJS - ReactJS
The project requires Node.js, and mongodb to work.
Install the dependencies and devDependencies and fix the server. Create an .env file in the root directory with the following code and fill in the configuration fields
clone https://github.com/heb1k0/it-chat/
cd it-chat/
CLIENT:
cd client
npm i
SERVER:
cd server
npm i
Do you want to start the project?
Inside the client and server folder, you will find an .env file that you must modify to start your project.
SERVER:
cd server
OPEN .env_template
PORT=3002
// URL CLIENT
CLIENT=http://localhost:3000
//MONGODB
MONGODB_URI=mongodb://localhost:27017/chatSocket
Modify the file if necessary and save it with the name .env
CLIENT:
cd client
OPEN .env_template
// URL API SOCKET
REACT_APP_URL= "http://127.0.0.1:3002"
Modify the file if necessary and save it with the name .env
RUN SERVER:
cd server
npm run start
RUN CLIENT:
cd client
npm run start