Products-service handles the /products
API endpoint for the FEC Project Atelier.
Products-service consists of two parts, an API server and a postgres instance.
Requires a K8s cluster, we recommend using minikube for local development.
$ kubectl apply -f minikube.yaml
$ docker compose up
$ npm install
$ npm run ts:build # compile TS files
$ ./download_csv.sh # download csv files, warning: very large
$ ./load_db.sh # load csv into postgres
GET /products
GET /products/:product_id
GET /products/:product_id/styles
GET /products/:product_id/related