Skip to content
This repository was archived by the owner on Jun 4, 2023. It is now read-only.
/ clojure-store Public archive

A Luminus Clojure website for ordering custom t-shirts (Functional Programming Assignment).

License

Notifications You must be signed in to change notification settings

j4ln/clojure-store

Repository files navigation

Clojure Store

Requirements

Running

  • Run the initial migrations with lein run migrate if it's the first time starting the server.
  • Start the server with lein run

This will start a local server running on localhost at port 3000.

The swagger API documentation will also be available at http://localhost:3000/swagger-ui/index.html.

Formatting

Uses Clojure plugin cljfmt

  • Check formatting with lein cljfmt check
  • Fix formatting with lein cljfmt fix

Testing

Run Clojure tests with lein test

Migrations

To create a new migration

  • lein repl
  • user=> (start)
  • user=> (user/create-migration "migration name")

To run all migrations

  • lein run migrate

To rollback the latest migration

  • lein run rollback

Delete database, and apply all migrations

  • lein run reset

Resources used

License

LGPLv3

About

A Luminus Clojure website for ordering custom t-shirts (Functional Programming Assignment).

Resources

License

Stars

Watchers

Forks