1.0.19 • Published 3 years ago

math-to-image v1.0.19

Weekly downloads
1
License
MIT
Repository
github
Last release
3 years ago

Math To Image Service

Setup

1) Add NPM package

npm init
npm install --save math-to-image

2) Create math2image.js with following code as an example

const MathToImage = require('math-to-image');

let mathToImage = new MathToImage();
mathToImage.start();

3) Run the service

node math2image.js

Run using pm2 http://pm2.keymetrics.io.

The best way to make sure service is always up and running is to use pm2.

1) Create ecosystem.config.yml using following code as an example:

module.exports = {
  apps : [
    { name: 'Math2Image',
      script: 'math2image.js',
      instances: 1,
      autorestart: true,
      watch: true,
      watch_delay: 1000,
      ignore_watch : ["node_modules", ".git"],
      max_memory_restart: '1G',
    }
  ]
};

2) Run service through pm2

pm2 start

3) Check it's running using

pm2 ls

4) Check logs using

pm2 logs
1.0.19

3 years ago

1.0.18

3 years ago

1.0.17

3 years ago

1.0.16

3 years ago

1.0.15

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago