Skip to content

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

Notifications You must be signed in to change notification settings

matt-tabnine/inventory-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published