Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 1.35 KB

README.md

File metadata and controls

43 lines (29 loc) · 1.35 KB

Product inventory app

Goal of the assignment is to create a minimalistic product inventory system. This repository contains a stub of the application with the same tech stack that our real application is built with:

Tasks

Please complete all of the following:

  1. List available products, their stock and prices
  2. Calculate total value of all products in the inventory
  3. Create a form to add new product to inventory

Run the application

# install dependencies
npm i

# start frontend server
npm start

# start postgres & hasura
docker compose up

Then open http://localhost:3000/ in your browser.

Hasura serves a grapql endpoint with schema auto generated from Postgres schema. It is available at http://localhost:8080/v1/graphql. Frontend should interact with the database only through this endpoint.

Hasura console is available at http://localhost:8080/console.

To add migrations for new database tables, you would have to run Hasura console locally using Hasura CLI.