A microservice for chat messaging.
-
Inspired by m3o chat api
- DATABASE_URL : Database connection string. More information here
- DATABASE_TYPE : disk, mysql, postgres, mongo (default to disk)
docker run -it -p 80:1337 -e "DATABASE_TYPE=mongo" -e "DATABASE_URL=mongodb://localhost:27017/chat_service_db" --name chat-service darkpearl/chat-serviceSee backend usage example in docker-compose.test.yml file.
Install dependencies
npm installDefine environment variables in .env file
cp .env.example .envStart in development mode
./scripts/start-dev.shAPI will be running at http://localhost:1337
Properly stop development mode after shutting down Sails with <Ctrl> + C
./scripts/stop-dev.sh