Skip to content

Latest commit

 

History

History
62 lines (45 loc) · 1.05 KB

README.md

File metadata and controls

62 lines (45 loc) · 1.05 KB

React / Clojure / Postgres Template

This template implements a technology stack intended to bootstrap rapid development of a web application or web service based on React, Clojure and Postgres.

The resulting deployable artifact is a standalone executable JAR file which contains the complete single-page web application, including all web resources embedded within it.

Features

  • React 15.2.x
    • React-Router
    • React-Bootstrap
  • Clojure 1.8.x
    • Ring
    • Compojure
    • Cheshire

Prerequisites

Usage

Create the database

cd {clone_dir}/database
psql -U {dba_username} -f create_database.sql
migrate up

Run in development mode:

cd {clone_dir}/web
npm install
npm run-script watch

cd {clone_dir}
lein ring server-headless

Build for deployment:

cd {clone_dir}/web
npm run-script build

cd {clone_dir}
lein ring uberjar

java -jar target/{jarfile}.jar