This repository uses Go (Backend), React (Frontend) and Redis (Messages storage) to deploy a simple chat-app application.
There is two frontend docker images (Dockerfile.development
and Dockerfile.production
), the first one is used by docker-compose for development environment and the other one is used by Circle CI for production environment.
The production (backend) docker file is available on DockerHub - ricardob/chat-app-backend
The production (frontend) docker file is available on DockerHub - ricardob/chat-app-frontend
Table of Contents
- Git;
- Go; (for development installation)
- Docker; (for development installation)
- Docker Compose; (for development installation)
- nodejs, npm; (for development installation)
- Circle CI account; (for production deployment)
Using Docker Compose:
- Clone the repository
With SSH
# git clone git@github.com:ricardobf/chat-app.git
or with HTTPS
# git clone https://github.com/ricardobf/chat-app.git
- Navigate to application folder:
# cd chat-app
- Run
docker-compose
command:
# docker-compose up
- On your browser navigate to localhost:3000
Obs.: You can change environment varibles inside docker-compose.yml
file.
-
Navigate to github.com/ricardobf/chat-app and fork the repository to your own workspace:
-
On another tab, navigate to circleci.com and create or login to an existing Circle CI account using GitHub:
-
On project settings, create environment variables according to your DockerHub account and image name:
-
Wait for the pipeline to run.
This project uses Apache License.