Skip to content

ahenrij/chat-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

38272fc · Dec 27, 2022

History

68 Commits
Aug 22, 2022
Aug 20, 2022
Dec 27, 2022
Aug 4, 2022
May 9, 2022
Aug 4, 2022
May 9, 2022
Aug 4, 2022
May 9, 2022
Aug 4, 2022
Aug 4, 2022
Aug 4, 2022
May 9, 2022
Dec 27, 2022
Dec 27, 2022
Aug 4, 2022
Aug 16, 2022

Repository files navigation

chat-service

A microservice for chat messaging.

Resources

Env. variables

  • DATABASE_URL : Database connection string. More information here
  • DATABASE_TYPE : disk, mysql, postgres, mongo (default to disk)

Usage

Run docker image

docker run -it -p 80:1337 -e "DATABASE_TYPE=mongo" -e "DATABASE_URL=mongodb://localhost:27017/chat_service_db" --name chat-service darkpearl/chat-service

Run using docker compose

See backend usage example in docker-compose.test.yml file.

Get started for development

Install dependencies

npm install

Define environment variables in .env file

cp .env.example .env

Start in development mode

./scripts/start-dev.sh

API will be running at http://localhost:1337

Properly stop development mode after shutting down Sails with <Ctrl> + C

./scripts/stop-dev.sh

About

Chat messaging microservice

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages