Skip to content

mauricioszabo/castra-users-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hoplon Example

A Hoplon project with Castra designed to test capabilities of Castra, Javelin, and Hoplon.

Dependencies

Usage

Development

  1. Install boot. This is as simple as following instructions on boot page (https://github.com/boot-clj/boot). You do not need clojure, nor any other dependency - only Java 1.7 and boot.

  2. Create database with boot createdb. It'll download all dependencies, clojure and clojurescript, then it will create a database with some seeds for you.

  3. Start the dev task. In a terminal run:

    $ boot dev

    This will give you a Hoplon development setup with:

    • auto compilation on file changes
    • audible warning for compilation success or failures
    • auto reload the html page on changes
    • Clojurescript REPL
  4. Go to http://localhost:8000 in your browser. You should see "Hello, Hoplon and Castra!" with random numbers that are generated on the server and transmited to the client. But you should change that to what you want.

  5. If you edit and save a file, the task will recompile the code and reload the browser to show the updated version.

Production

  1. Run the prod task. In a terminal run:
    $ boot prod
  2. The compiled files will be on the target/ directory. This will use advanced compilation and prerender the html.

Deployment

You can easily deploy this application for free to Heroku.

  1. Get a Heroku account and install the Heroku toolbelt
  2. Create an application in the Heroku dashboard
  3. Build a WAR file with boot make-war
  4. Follow these instructions to deploy the WAR to Heroku using the heroku tool.

License

Creative Commons 4.0 SA 2015, Maurício Eduardo Chicupo Szabo.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published