Daniel O'Connell 072e0b3f4d migrations
2021-03-13 12:45:24 +01:00
..
2021-03-06 21:55:41 +01:00
2021-03-13 12:45:24 +01:00
2021-03-13 12:45:24 +01:00
2021-03-06 21:55:41 +01:00
2021-03-13 12:45:24 +01:00
2021-03-13 12:45:24 +01:00

Backend

The API for the chickens service.

Development

  1. Setup the development database:

    docker run --name some-postgres -e POSTGRES_PASSWORD=mysecretpassword -p 5432:5432 -d postgres clojure -A:migrate up

  2. Start the server:

    clojure -M:dev

Testing

clojure -M:test

Deployment

clojure -X:depstar uberjar
java -Dconfig=config/dev/config.edn -jar chickens.jar

Migrations

To the newest migration

clojure -A:migrate up

Down one

clojure -A:migrate down