Skip to content

cbegin/react-clojure-postgres-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A project template featuring a React SPA, Clojure REST API and a Postgres database with migrations.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published