Giter VIP home page Giter VIP logo

package-tracker's Introduction

Package Tracker

alt text

a simple demonstration of a package status tracking service

Business Constraints

  1. Recording package entries
  • title and size of package is required
  • description is optional
  • status of package defaults to "WAREHOUSE" if no status is specified
  1. Updating package status
  • A package status can only be in "DELIVERED" once throughout it's existence
  • A package status can only be in "PICKED_UP" once throughout it's existence
  • Package status can move from one status to the other provided the aforementioned constraints are followed

Tools Used

  • NodeJS (v16 recommended)
  • Postgres (v14 recommended)

App specifications

  • TS driven
  • Inversify for IOC
  • KnexJS for database communications
  • Migrations are written in raw SQL (yes, i like stress ๐ŸŒš)

How to run locally

  • Clone The project and CD into project root directory

  • Install app dependencies

$ npm install
  • Configure environment variables
$ cp .env.example .env
# replace the contents of .env with your desired values
  • Ensure postgres is running locally

  • Run build command

$ npm run build
  • Start server
$ npm start

To run in watch mode

  • Create another terminal tab and ensure the new tab is in the project's root directory
# tab 1
$ npm run watch
# tab 2
$ npm run start:dev

Testing

Tests are handled using Jest. To run tests, run the following command

$ npm test

Contributors

package-tracker's People

Contributors

emmanuerl avatar

Stargazers

Henry Ihenacho avatar Moyosoreoluwa avatar Olaifa Boluwatife avatar  avatar Ukeje Goodness avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.