Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

gmsvalente/hekommerce

Repository files navigation

A heroku ecommerce demo

This is an ecommerce demo using heroku!

It’s a WIP.

Errors and incomplete usability is expected!

Check live:

https://hekommerce.herokuapp.com

(it is a free dyno so warmup time is huge!)

Stack

Clojure

  • spec
  • XTDB with postgresql
  • hiccup
  • ring
  • reitit

Clojurescript

  • shadow-cljs
  • reagent
  • re-frame

USAGE

You need clojure, clojurescript and shadow-cljs installed.

To run in your localhost, you must have a postgresql installed. Or you can use a docker image.

docker pull postgres
docker run --name container-name -e POSTGRES_USER=user -e POSTGRES_PASSWORD=password -e POSTGRES_DB=userdb -p 5432:5432 -d postgres

If you use other configuration for host, port, username, password and db you must set an JDBC_DATABASE_URL env variable.

export POSTGRES_USER=<psql user name>
export POSTGRES_HOST=<psql host address>
export POSTGRES_PASSWORD=<psql password>
export POSTGRES_DB=<psql db name>

export JDBC_DATABASE_URL="jdbc:postgresql://$POSTGRES_HOST:5432/$POSTGRES_DB?password=$POSTGRES_PASSWORD&user=$POSTGRES_USER"

Set web port:

export PORT=<port number>

Clone the repo and run:

git clone https://github.com/gmsvalente/hekommerce.git
cd hekommerce
npm install
shadow-cljs release :hekommerce 
clojure -M:run-server $PORT

TODOS

  • [ ] TESTS
  • [ ] Improve specs validations and parsing
  • [ ] Add products api
  • [ ] Add js/webStorage
  • [ ] Add integrant

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published