Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 1008 Bytes

README.md

File metadata and controls

29 lines (21 loc) · 1008 Bytes

Serve_Chat

This a distributed system based chat application made using Django Channels, Postgres and MongoDB.

Project Architecture:

Run with docker compose (Recommended for testing)

In order to run the application as isolated docker container network run following command in terminal of your project directory.


Build images and run containers

docker-compose up --scale app=3

Run migration scripts

docker-compose run app python manage.py migrate

The server is now up and running in http://localhost:8000/ the mapped database volume directory will be created as "data" in your project directory.

Setup development environment

In order to setup local development environemnt you can simply create a virtual environment with -env in the end of environment name to ensure it is ignored by .dockerignore and .gitignore. requirements.txt for individual service is provided in it's directory.