MERN-WEBSOCKET-CHAT

May 21, 2021 ยท View on GitHub

Build status Deploy on Heroku

Development

Perquisites

  • Docker installed.
  • Node and npm installed.

Start in development mode

Copy .env.example.dev to .env, or suplement your own .env based on .env.example.dev.

Run:

 ./start_db.sh

Install all dependencies:

cd backend && npm i

and

cd client && npm i

In separate terminals start development servers:

cd backend && npm start

and

cd client && npm start

Production

Make init.sh script executable:

chmod +x init.sh

And run it:

./init.sh