SimpleChat-API
SimpleChat-API is a simple ExpressJs-based API for SimpleChat App It uses MongoDB as its database.
Download
git clone https://github.com/lqt93/simple-chat-api.git
Require
SimpleChat-API requires NodeJs v10.0 and above.
Installation
** The instruction uses Yarn as default, you can either use yarn or npm.
cd simple-chat-api
yarn install
Running
Add 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 start
License
MIT