Skip to content

Robots vs Dinosaurs ClojureScript client-side game made with Reagent and exposed with Nginx.

License

Notifications You must be signed in to change notification settings

gabrielgiordan/robots-vs-dinosaurs-reagent

Repository files navigation

Robots vs Dinosaurs Reagent

ClojureScript app to present simulations on an army of remote-controlled robots that fight dinosaurs!

Click here to view live on Heroku

Contents

Overview

The Reagent client-side ClojureScript SPA, responsive, app for Robots vs Dinosaurs which can be exposed with Nginx and deployed on Docker and Heroku.

The client-side app consumes the server-side app accepting and sending the application/transit+json format for faster communication.


Development

Yarn

Install dependencies:

yarn install

Compile and watch using shadow-cljs watch app run:

yarn dev


Deployment

Yarn

Clean /target and generated /public/js directories:

yarn clean

Run a release build optimized for production with shadow-cljs release app:

yarn release

Docker

To build and run the Nginx server with Docker container and the compiled /public/js execute:

docker build -t <image_tag> . && docker run -p 3000:30 --env PORT=30 --name robots-vs-dinosaurs-reagent <image_tag>

Heroku

Login to Heroku's Container Registry:

heroku container:login

After building the image with Docker, push it to the Heroku's Container Registry:

heroku container:push web --app <heroku_app>

Then release the image to the app:

heroku container:release web --app <heroku_app>

License

Copyright © 2019

About

Robots vs Dinosaurs ClojureScript client-side game made with Reagent and exposed with Nginx.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published