This project contains both client and server code.
Our server is written in Scala using Akka for HTTP and Websocket support. Set up instructions:
- Set up redis via brew.
- Set up Postgres locally via
brew
brew install postgres
brew services start postgresql
createdb
psql
> create database monarchy_local;
- Get set up with Bazel build tooling
- Run server using
bazel run //server/src/web
- Set up database schema and seed with some data.
cat ./database/1-init.sql | psql -d monarchy_local
cat ./database/2-game-schema.sql | psql -d monarchy_local
# and so on, will script this soon
./database/seed.sh
- Route your browser to http://localhost:8080/admin
You can find the development client in clients/web-devel
. This is simple React/Redux app with React-bootstrap
- In a separate tab, navigate to
clients/web-devel
- Run
yarn
- Run
yarn dev
This app is already configured to talk to your server on localhost:8080