Skip to content

Samiur-UTI/ErpTask

Repository files navigation

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:https://localhost:3000/ in your browser.

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

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

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published