Skip to content
This repository has been archived by the owner on Apr 16, 2018. It is now read-only.

conflictserpent/battlesnake-admin-2018

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BattleSnake Admin

This project is for the admin dashboard of the 2018 battlesnake.io coding event. The actual game server lives at http://github.com/sendwithus/battlesnake-server.

Getting Started

Pull the repo, then run ./scripts/setup

Create some files

Create ./scripts/env-local.yml and load it with:

GITHUB_CLIENT_ID: <fill in with your own>
GITHUB_CLIENT_SECRET: <fill in with your own>
GITHUB_CALLBACK_URL: http://localhost:3009/auth/github/callback
REDIS_HOST: localhost
BATTLESNAKE_SERVER_HOST: http://localhost:3001
AUTH_REDIRECT_URL: http://localhost:3000
COOKIE_DOMAIN: localhost
SESSION_SECRET: any_appropriate_text

Create Github OAuth vars

Go here to create a new Github OAuth app to get your credentials to fill in GITHUB_CLIENT_* values above.

More info here: https://developer.github.com/apps/building-oauth-apps/creating-an-oauth-app/

Run the required services

First, run ./scripts/services to spin up all the services including the battlesnake game server.

Then, run the migration script for dynamodb ./scripts/migrate.

Start the server and client build

To get the server and client running, open two terminal windows and run ./scripts/run-server and ./scripts/run-client in them respectively.