Skip to content
sculpturePublic

About

Web app for the sculpture project

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

Sculpture App

Notes

  • backend:

    • clojure

    • 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:

Getting Started

Install System Dependencies

  • java
  • leiningen
  • imagemagick
  • mozjpeg
  • postgres w/ postgis

Set Up Database

  • 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

Setting Up App

  • In CLI, clone this repo: git clone git@github.com:sculpture/site.git

Set Up Config Vars

  • Modify the config vars: create an config.edn in your preferred editor (see src/sculpture/config.clj for schema)

Standard Dev Session

  • 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/

About

Web app for the sculpture project

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages