Skip to content

A recreation of telebum using react/redux, docker and postgres

License

Notifications You must be signed in to change notification settings

andykais/telebum2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A recreation of telebum using react/redux, docker and postgres

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published