-
backend:
-
provides a REST API
-
data
- the data repo is "source of truth"
- postgres is effectively used as a "cache" for the API (plus, makes it easy to do complicated queries and geospatial queries)
- data is persisted both to postgres and to the data repo (on the web branch)
-
images
- persisted to S3
- transformed w/ imagemagick + mozjpeg
-
frontend:
- clojurescript
- re-frame / reagent / react for client side state + UI
- garden for CSS
- java
- leiningen
- imagemagick
- mozjpeg
- postgres w/ postgis
-
install postgres and postgis (on Mac PostgresApp is recommended)
-
Create a database user:
createuser sculpture -
Assign password to the user:
psql postgres -c "alter user sculpture with password 'sculpture'; -
Create the database:
createdb -O sculpture sculpture
- In CLI, clone this repo:
git clone git@github.com:sculpture/site.git
- Modify the config vars:
create an
config.ednin your preferred editor (seesrc/sculpture/config.cljfor schema)
-
In CLI, start the REPL:
lein repl -
In the REPL, launch the server:
(start!) -
If necessary, re-import database:
(db/reload!) -
In browser, go to
http://localhost:2469/