Skip to content

thegeez/w3a-example

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
dev
 
 
 
 
 
 
 
 
 
 
 
 
 
 

w3a-example

Web application in Pedestal using w3a

More information on the blogpost: http://thegeez.net/2015/05/16/w3a_web_application_pedestal.html

Source

The most interesting file is src/w3a/example/service.clj

Development

This uses an in-process/in-memory only database. In the user namespace, through lein repl/cider etc.:

   (go) ;; to start the component system, localhost:8080 will serve the site
   (reset) ;; to reset the whole component system

Running production uberjar (for heroku):

   lein uberjar
   java -jar target/w3a-example-prod-standalone.jar PORT DB-URL

Deploy on heroku

First time, provision a postgrest database (see https://devcenter.heroku.com/articles/heroku-postgresql):

   heroku addons:add heroku-postgresql:dev

Deploying:

   git push heroku

About

Written by: Gijs Stuurman / @thegeez / Blog / GitHub

License

Copyright © 2015 Gijs Stuurman

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published