Project requirements: https://www.codementor.io/projects/web/daily-sleep-tracker-web-app-byi4kpk5rt
This project uses the Clojure CLI as the main package manager as well as docker to run a local database. For the frontend build, it uses shadow-cljs and node.js
- database
- routing
- utility
- integrant - clojure state management
- frontend
- reagent - react for clojurescript
- re-frame - state management system
- tailwindcss - utility css framework
- headless ui - unstyled utility components
- recharts - react charting library
First download and run the postgres instance using docker compose
inside of the working directory.
$ docker compose up -d
$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
3e0fb42d3001 postgres "docker-entrypoint.sā¦" 20 hours ago Up 33 minutes
Now you can run the main function using the :server
alias and access the http server on port 8080. To run the frontend application use the npm start command.
$ clj -M:server
$ npm start