Code Monkey home page Code Monkey logo

giangem-order's Introduction

๐Ÿ“š Setel Order Service

Main feature: Responsible for orders management.

๐Ÿ› ๏ธ Prerequisites

  • Environment required: NodeJS > 10.20

Non Docker

  • Please make sure to either have MongoDB Community installed locally or a subscription to Mongo on the cloud by configuration a cluster in atlas.

Docker ๐Ÿณ

  • Please make sure to have docker desktop setup on any preferred operating system to quickly compose the required dependencies. Then follow the docker procedure outlined below.

Note: Docker Desktop comes free on both Mac and Windows, but it only works with Windows 10 Pro. A workaround is to get Docker Toolbox which will bypass the Windows 10 Pro prerequisite by executing in a VM.

Technical stack

  • Technical programming:
    • Language: NodeJS, Typescript
    • Framwork: NestJs
    • Task-runner: Gulp
    • Testing: Jest
  • Technical operation:
    • Containerize: all application containerize with Docker
    • Orchestration: K8S, Kops
    • Package manager: Helm
    • CI/CD: Bitbucket pipeline
    • Cloud: AWS

๐Ÿš€ Deployment

You can launch applications with many different environment modes like:

  • Local: running with local environment. Application mode running in port: 3000

    # install: yarn
    # running: yarn start

โœ… Testing

Docker ๐Ÿณ

# unit tests
$ docker exec -it nest yarn test

# e2e tests
$ docker exec -it nest yarn test:e2e

# test coverage
$ docker exec -it nest yarn test:cov

Non-Docker

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov
  • For staging & production environments, you cannot run it on your local server. This is because configs for these environments are used under configmap and secret on our K8S infrastructure. Note that for staging environment you can access the document-api link that we have implemented below

Release change

  • Version 2020 list change:
    • Upgrade gulp V4 is compatibility version node >= 12
    • Lib (in src/libs) change all common variable is cammelCase

License


MIT

VMO Global

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.