mirror of
https://github.com/mruwnik/chicken-master.git
synced 2025-06-09 05:44:46 +02:00
24 lines
483 B
Markdown
24 lines
483 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
|
|
psql 'postgresql://localhost/postgres?user=postgres&password=mysecretpassword' < resources/schema.sql
|
|
|
|
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
|