/inventory-app

API for tracking items during move 📋

Primary LanguageJavaScript

Inventory API

An API for tracking item location during moves.

Prerequisites

In order to run the project, you'll need MongoDB installed.

Getting Started

Before you can run the project, you'll first need to create the database. The easiest way to do this is to import the mock data provided. Feel free to extend the JSON and update the model/schemas appropriately.

From the project root/backend, run:

mongoimport --db inventory --collection boxes --jsonArray mock/inventory.json

Next, build the project from the same directory:

yarn build

This will run the TypeScript compiler and generate the backend/dist/ directory. Edit the tsconfig.json file to change the output directory and other settings.

Finally, start the API server by running in the backend/ directory:

yarn start