Skip to content

Latest commit

 

History

History
67 lines (37 loc) · 1.69 KB

README.md

File metadata and controls

67 lines (37 loc) · 1.69 KB

multiplayer-online-battle

Overview

This is an online battle game, which build on top of flappy-bird and allows multiple gamers challenge eath other in real time.

Note: At least two players are needed to start game, just opening two different browsers

  • Here is my post about this project, which includes project architecture, design and summary

Setup

Running instruction locally for development

Thanks to Emacs, CIDER, nREPL and Figwheel providing efficient interactive development environment that rocks, which enable REPL-driven development for both front-end and back-end.

Back-end:

  • git clone this project
  • open main.clj in Emacs
  • M-x to open cider-jack-in
  • excecute (start) in repl

Frond-end:

please comment out landing_min, game_lobby_min, gaming_min build instructions in file project.clj at local dev environment

  • M-x to open shell
  • lein cljsbuild once
  • lein figwheel landing

or

  • leign figwheel game-lobby

or

  • lein figwheel gaming

build all min at once

  • lein uberjar

Deployment

HeroKu was choosed as the deployment platform. This github repo has been connected to HeroKu, and the app will be automatically deployed after each push change to master branch. 'Procfile' file was used to explicitly declare what command should be executed to start this app

HeroKu official guide

Set up Heroku

login first:

heroku login

initial set up:

heroku create

deploy the app:

git push heroku master