A recreation of telebum using react/redux, docker and postgres
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
compose
services
.dockerignore
.gitignore
.gitmodules
LICENSE
README.md
install.sh
shell.sh
start.sh

README.md

Requirements

make sure docker group is added (so docker can open ports without sudo)

sudo groupadd docker
sudo gpasswd -a ${USER} docker
sudo systemctl restart docker

Setup

add wait-for-it submodule

git submodule init
git submodule update --recursive

Running

# init databases and install node modules (only necessary during setup)
./install.sh
# start the server in development mode
./start.sh dev

# enter into any running container in this project
./shell.sh [service_name]

# get to a postgres client with
docker run -it --network=telebumapp_db postgres:9.6 \
  psql -h postgres -p 5432 -d telebum -U postgres
# or
pgcli postgres://postgres:test@localhost:5432/telebum

Gotchas

Web-Client & Web-Api

To install packages, use shell.sh. A weird issue is that webpack cannot detect a new packages after you require it in a file given it is not already installed. Therefore, when adding new packages follow this order:

  1. ./shell [service]
  2. $ yarn add package
  3. now import package to file