Code Monkey home page Code Monkey logo

foodhut-order-processing-microservice's Introduction

Description

FoodHut App Base API Gateway for FoodHut; A simple food ordering application.

Microservices

Order Processing Service Order creation and updates.

Dispatch Service Service Updates dispatch status of the order.

Shared Repository For gRPC Protocol Buffer Files

Proto Repo Proto files shared across the api gateway and 2 microservices

Environment Setup

  1. Ensure Node and Yarn are Installed

  2. Ensure Protocol buffers are installed (Optional)

# for mac users
$ brew install protobuf

# for linux users
sudo apt install protobuf-compiler
  1. Ensure Postgres Is Installed

Installation & Project Setup

  1. Install Dependencies
$ yarn install
  1. Generate fresh protobuf files (Optional)
$ yarn proto:install && yarn proto:all

Configure Database

  1. Create a .env file from the data in .env.example file

  2. Update .env file with database information that you've configured for the project

Running the app

# development
$ yarn start

# watch mode
$ yarn start:dev

# production mode
$ yarn run start:prod

Test

# unit tests
$ yarn test

# e2e tests
$ yarn run test:e2e

# test coverage
$ yarn run test:cov

DB Migrations

# generate migration
$ yarn generate:migration -- db/migrations/<migration_name>

# run migration
$ yarn run:migration

# revert migration
$ yarn revert:migration

foodhut-order-processing-microservice's People

Contributors

abahernest 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.