Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Inventory API

This is an inventory API built for demonstration purposes only. It is available in monolith or microservices form factor.

Installation

  1. Clone the inventory-api repository:

    $ git clone https://github.com/matt-hasura/inventory-api.git
    $ cd inventory-api
  2. From the root directory, select the version of the API you want to run by changing to the corresponding directory:

    Monolith:

    $ cd monolith

    Microservice:

    $ cd microservice
  3. Run the Docker Compose file:

    $ docker compose up -d
  4. A Swagger specification for the API is available at https://inventory-api.igraphql.co/swagger-ui.

Notes:

  • To use Snowlake as your database, modify the docker-compose.yaml file to include the appropriate environment variables (see documentation for details).
  • Modify your hosts file to point inventory-api.igraphql.co to 127.0.0.1.

Custom Images

The pre-built container images use NGINX Unit as a framework wrapped around Node.js and Express. See the instructions in each directory to build your own container images.

About

A demo inventory API written in Node.js and Express with database support for PostgreSQL and Snowflake.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages