https://github.com/marteinn/employees-api-clojure
A example api with orm built in clojure
https://github.com/marteinn/employees-api-clojure
clojure leiningen
Last synced: over 1 year ago
JSON representation
A example api with orm built in clojure
- Host: GitHub
- URL: https://github.com/marteinn/employees-api-clojure
- Owner: marteinn
- Created: 2019-07-18T12:23:42.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-27T13:26:13.000Z (almost 7 years ago)
- Last Synced: 2025-01-22T14:25:17.585Z (over 1 year ago)
- Topics: clojure, leiningen
- Language: Clojure
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Employees-Api-Clojure
This library is a port of [Employees-Api-Coconut-Lang](httpsEmployees-Api-Coconut-Lang) to [Clojure](https://clojure.org/) and is devided into two parts:
1. A backend built in Clojure and uses [httpkit](https://www.http-kit.org/) and [ring](https://github.com/ring-clojure/ring) for http stuff and [toucan](https://github.com/metabase/toucan) for orm.
2. A frontend built in Clojurescript, running reagent (for React) and cljs-http.client.
## Getting started
- `brew install clojure`
- `brew install leiningen`
### Backend
- `cd backend`
- `docker-compose up`
- `lein run`
- `curl http://127.0.0.1:8080/employees`
### Frontend
- `cd frontend`
- `lein figwheel`
## License
This project is released under the [MIT License](http://www.opensource.org/licenses/MIT).