SimpleChat-API is a simple ExpressJs-based API for SimpleChat App It uses MongoDB as its database.
git clone https://github.com/lqt93/simple-chat-api.gitSimpleChat-API requires NodeJs v10.0 and above.
** The instruction uses Yarn as default, you can either use yarn or npm.
cd simple-chat-api
yarn installAdd process.env variables by creating an ".env" file in the root folder:
DB_URI=your_mongodb_uri
PORT=your_desire_port- You must always set DB_URI which is the link to your mongodb database to run the api.
- If you dont set the PORT in .env file, by default, it would be 8000.
Run api by:
yarn startMIT