mirror of
https://github.com/mruwnik/chicken-master.git
synced 2025-06-08 13:24:42 +02:00
34 lines
509 B
Markdown
34 lines
509 B
Markdown
# 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
|