Git Product home page Git Product logo

billing-service-environment's Introduction

Create billing service environment

This tool create local environment for Billing Service.

Installation:

# Clone repo to your local machine:
$ git clone https://github.com/ivz-dev/billing-service-environment.git

# Navigate to project dir: 
$ cd billing-service-environment

# Run this command to make script can be run
$ chmod +x create_work_env.sh

# Run script
$ ./create_work_env.sh

Environment contains:

  • docker container with:
node js  - 8.9.1
npm      - 5.5.1
mysql    - 5.7
pm2      - 2.7.1
  • ~/billing-service/ - Project dir
  • mysql docker volume, for synchronized mysql data.

Environment description:

After the project is launched, in docker container will be running:

  1. Mysql
    Config: user:mysql pass:''
    Database storage will be synchronized with your local machine and thus all data will be save after stopping the container.
  2. Project
    Your local code ~/billing-service/ will be synchronized with docker-container /src, and will be launched through process manager pm2, like this:
# /src
pm2 start index.js --watch

Thus, you will get hot-reload your code. You can locally run npm command, install packages, npm directory also synchronized with docker-container.

Commands:

# Run project:
$ docker start billing-service

# Stop project: 
$ docker kill billing-service 

# Open container shell:
$ docker exec -it billing-service /bin/sh

Project will be launched on 82 port

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.