Giter Site home page Giter Site logo

lucduong / servicebot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from service-bot/servicebot

0.0 2.0 0.0 23.52 MB

Open-source subscription management & billing automation system

Home Page: https://servicebot.io

License: GNU General Public License v3.0

JavaScript 81.43% HTML 0.20% CSS 18.35% Shell 0.02%

servicebot's Introduction

Setup Env

1. Clone source

git clone https://github.com/lucduong/servicebot.git

2. Install Dependencies

cd servicebot
npm i

3. Install Postgresql

3.1 Windows

  • Download Installer package from official Postgres site.
  • Flow Posgresql installation.

3.2 Linux

sudo apt-get update
sudo apt-get install postgresql postgresql-contrib

4. Export Environment Props

Write these lines to the end of ~/.bash_profile or ~/.zshrc

export POSTGRES_DB_HOST=localhost
export POSTGRES_DB_PORT=5432
export POSTGRES_DB_USER=postgres
export POSTGRES_DB_PASSWORD=postgres
export POSTGRES_DB_NAME=postgres

Make sure that everything is availabel by sourcing env props.

source ~/.bash_profile

5. Build source

npm run build

6. Start service

node ./bin/start.js

7. Start with pm2

7.1 Install pm2 if not installed yet

npm i -g pm2

7.2 Start service

Navigate to source folder.

pm2 start ./bin/start.js --name=servicebot

servicebot's People

Contributors

bsears90 avatar lsydev avatar service-bot avatar

Watchers

James Cloos avatar Luc 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.