https://github.com/wallymathieu/auctions-api-clojure
Simple Auction API
https://github.com/wallymathieu/auctions-api-clojure
auctions
Last synced: 8 months ago
JSON representation
Simple Auction API
- Host: GitHub
- URL: https://github.com/wallymathieu/auctions-api-clojure
- Owner: wallymathieu
- Created: 2023-07-09T05:38:05.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-24T08:41:33.000Z (almost 2 years ago)
- Last Synced: 2025-01-01T23:23:08.139Z (9 months ago)
- Topics: auctions
- Language: Clojure
- Homepage:
- Size: 23.4 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Auctions in Clojure
It also offers a self-hosted OpenAPI documentation, accessible via Swagger UI.
It persists auctions to Postgres via [next.jdbc](https://github.com/seancorfield/next-jdbc).
# Run on localhost
## Configure PostgreSQL server
First you must run a Postgres server with Docker for eg.:```
$ docker run --name some-postgres -e POSTGRES_DB=auctions -e POSTGRES_PASSWORD=mypass -d -p 5432:5432 postgres
```## Run the application
```
$ export JDBC_DATABASE_URL="jdbc:postgresql://localhost/auctions?user=postgres&password=mypass"
$ clj -M -m auctions.core 3000
```If that port is in use, start it on a different port. For example, port 8100:
```
$ clj -m auctions.core 8100
```# License & Copyright
Copyright (c) 2023 Oskar Gewalli.
Distributed under the Apache Source License 2.0.