Skip to content

wzin/bababet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bababet

Requirements

  • Java 7+
  • leiningen

First run

lein deps

Running

Prepare two shell sessions:

  • first - figwheel dev environment
lein fighweel
  • second - application itself
lein run

Open following link in browser: http://localhost:3000

Installing postgres

# install postgres
brew install postgres
# create user
createuser -d -P bababet # [Password: bababet]
# create database for tests
createdb -E utf8 -O bababet bababet_test
# check
psql -l
# connect
psql bababet
# connect via TCP
psql -h localhost -p 5432 bababet

Creating new migration

;; in REPL
(require '[joplin.core :as joplin])

(require '[joplin.jdbc.database])

(def target {:db {:type :sql
                  :url "jdbc:postgresql://localhost:5432/bababet_test?user=bababet&password=bababet"}
				  :migrator "migrations"})

(joplin/create-migration target "create-user-table")

About

A Clojurescript/Reagent Bitcoin Bets app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published