Chat application written in TypeScript + React and Socket.io.
These instructions will get you a copy of the project up and running on your local machine for developement purposes.
There are two things You have to install in order to get this project running on your machine.
- Since project uses NodeJS you must have it installed, otherwise you won't be able to start project.
- Chat uses MongoDB as a storage database. To get project running you must have it installed on your local machine or specify MongoDB server address inside src/server/app.ts file.
mongoose.connect('mongodb://your-mongodb-server-address/your-collection-name', ...)
- To run project make sure you have both NodeJS installed and MongoDB server running.
- Navigate to chat root directory and execute following commands to run application:
npm install
npm start
If everything goes well you will get chat running on http://localhost:3000
To run project in production environment use
npm run start:prod
If any error has occurred, please let me know by opening issue.