ClojureScript app to present simulations on an army of remote-controlled robots that fight dinosaurs!
Click here to view live on Heroku
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.
Install dependencies:
yarn install
Compile and watch using shadow-cljs watch app run:
yarn dev
Clean /target and generated /public/js directories:
yarn clean
Run a release build optimized for production with shadow-cljs release app:
yarn release
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>Login to Heroku's Container Registry:
heroku container:loginAfter 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>Copyright © 2019
