chat-api

API for a private chat.

Stars
6

Chat API (for this front-end)

Getting Started

Back-end project for a private chat, written with NodeJS + Express + Socket.IO + Mongoose.

Pre requisites

$ node --version
v10.9.0

$ NPM --version
v6.4.0

$ MongoDB --version
v4.0.2

How to Run

Create a database in MongoDB
git clone https://github.com/fernandohenriques/chat-api.git
cd chat-api/
Create a file called .env
Open this file and add this variables:
  - PORT -> Port to API
  - MONGODB_URI ->  A MongoDB URI for database
npm install
npm start

Running tests

Linter validations

cd chat-api/
npm run lint

Built With

Author