Skip to content

abhandaru/monarchy1

Repository files navigation

Build Status

Monarchy project

This project contains both client and server code.

Server

Our server is written in Scala using Akka for HTTP and Websocket support. Set up instructions:

  1. Set up redis via brew.
  2. Set up Postgres locally via brew
brew install postgres
brew services start postgresql
createdb
psql
> create database monarchy_local;
  1. Get set up with Bazel build tooling
  2. Run server using
bazel run //server/src/web
  1. 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
  1. Route your browser to http://localhost:8080/admin

Client

You can find the development client in clients/web-devel. This is simple React/Redux app with React-bootstrap

  1. In a separate tab, navigate to clients/web-devel
  2. Run yarn
  3. Run yarn dev

This app is already configured to talk to your server on localhost:8080