Giter VIP home page Giter VIP logo

inventory-service's Introduction

inventory-service-nodejs-2022-s1

Inventory management system using GRPC

Sample grpc implementations

Running the project in dev mode

To run the project you need to have nodejs installed on your computer On windows systems the installation comes packed with nodejs already i.e npm

On linux there are a variety of ways you can use to install nodejs

  • Using nvm
  • Using node source control
  • Installing the tarball

Nvm Documentation is easy to work with.

Once you have installed nvm run the following command

nvm install --lts

The command should install the latest version of nodejs i.e >=18.*.*

This should have with it npm installed Next we'll choose a package manager between

npm You can read more on npm

yarn You can also read more on yarn

pnpm You can also read more on pnpm

Going forward we'll use pnpm as our package manager

Package manager

We'll use pnpm as our package manager. To install it in your system run npm i -g pnpm

Once you've installed the pnpm package manager the install the node_modules using the following command

pnpm install
#or 
pnpm i

Once all modules are installed to run either servers follow the steps below

Server

pnpm dev-rpc:server

Client

pnpm dev-rpc:client

inventory-service's People

Contributors

forinda avatar mwanagenzi avatar

Forkers

forinda

inventory-service's Issues

Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch

Logs

2022-11-19T01:52:17.922460+00:00 app[web.1]: > [email protected] start
2022-11-19T01:52:17.922461+00:00 app[web.1]: > node ./src/api/index.js
2022-11-19T01:52:17.922462+00:00 app[web.1]: 
2022-11-19T01:52:19.150621+00:00 app[web.1]: �[32minfo�[39m: Rest client running on http://localhost:5000
2022-11-19T01:52:19.154635+00:00 app[web.1]: �[32minfo�[39m: Server running at http://127.0.0.1:50051
2022-11-19T01:52:19.858448+00:00 app[web.1]: �[32minfo�[39m: {"message":"MongoDB connected","time":"Saturday, November 19, 2022 1:52 AM"}
2022-11-19T01:53:16.194163+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
2022-11-19T01:53:16.221126+00:00 heroku[web.1]: Stopping process with SIGKILL
2022-11-19T01:53:16.409175+00:00 heroku[web.1]: Process exited with status 137
2022-11-19T01:53:16.467592+00:00 heroku[web.1]: State changed from starting to crashed

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.