- Go server is integrated using the quartz gem
- React uses react-rails and bootstrap-saas
If you want to include New Relic monitoring, first run
gem install newrelic_rpm
if you don't already have the New Relic ruby agent on your system.
Then uncomment the last line of the Gemfile to enable that gem.
Also add your license key to config/newrelic.yml
Setup rails as follows
git clone https://github.com/DavidSantia/tagdemo-rails
cd tagdemo-rails
bundle install
Some gems require options to build, for example the OpenSSL library path from Homebrew:
bundle config build.mysql2 "--with-ldflags=-L/usr/local/opt/openssl/lib --with-cppflags=-I/usr/local/opt/openssl/include"
Then bundle install
can work properly
In one terminal, setup the test database
docker build -t demo-mysql ./mysql
And run the database container
docker run --name demo-mysql --rm -p 3306:3306 demo-mysql
Make the Go server as follows
./build-goserver.sh
In another terminal, run rails
cd tagdemo-rails
bin/rails s
Go to localhost:3000