Giter Club home page Giter Club logo

nodeprintapplication's Introduction

NodePrintApplication

This is a Node.js-based Printing Application written for Carlson School of Management

Easy Setup

Just run NodeOnBoot.exe and follow the steps. Node server will run in background even after rebooting the system, so you don't need to set it up again.

NodeOnBoot

Dependencies

First, clone the repo, then you need to install all the npm dependencies:

$ git clone [git-repo-url]
# In the project root
$ npm install

Also to run the server, you need to install pm2 on your machine:

Install pm2 globally

$ npm install pm2 -g

running for development

Use $ node server\bin\www -h to see all of requried parameters.

run the server using

pm2 start server\bin\www --  -p pfxPassword -a "Path\to\pfxFile.pfx"

check logs for any issues

pm2 node logs can be found by default in your use account dotfiles at C:\Users\%%user%%\.pm2\logs or by pm2 logs command

running for production

In order to use all the resources available:

pm2 start server\bin\www -i 0 --  -p pfxPassword -a "Path\to\pfxFile.pfx"

or -i for any other desired number of instances. e.g. pm2 start server\bin\www -i 2 -- -p pfxPassword

Sending Requests

It is possible to send get/post to these urls:

  • Sending Get to Homepage:
http://localhost:3000
  • Sending Json data via POST:
http://localhost:3000
  • Sending test Json data via POST:
http://localhost:3000

Generated 'HTML' will be sent as a part of Response to Post Requests.

Authors


nodeprintapplication's People

Contributors

0xhmn avatar maxfierke avatar

Watchers

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