Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

igplaner-back-dev

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

igplaner-back-dev

Backend for the IGPlanerx Application based on MongoDB

  • 1.2.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

IGPlaner Backend

IGPlaner backend is the backend for a School System called IGPlaner.

Installation

Use the package manager npm to install igplaner-back-dev.

Local folder
npm install --unsafe-perm igplaner-back-dev
Global
npm install -g --unsafe-perm igplaner-back-dev

This package requires a working mongodb installation.

Autostart

If you are using systemd, you can use this script:

Local folder
[Unit]
Description=IGPlaner ReSTful api.
After=network.target

[Service]
ExecStart=<installationPath>/node_modules/.bin/igplaner-dev-cli auto-start

[Install]
WantedBy=multi-user.target

!!You need to insert your installation path!!

Global
[Unit]
Description=IGPlaner ReSTful api.
After=network.target

[Service]
ExecStart=/usr/bin/igplaner-dev-cli auto-start

[Install]
WantedBy=multi-user.target

In most cases the path to igplaner-dev-cli is /usr/bin/igplaner-dev-cli, if not please change it to your system.

Both
Enable autostart

in my case igplaner-back-dev is the service name, please change it to your choice.

systemctl enable igplaner-back-dev
Disable autostart
systemctl disable igplaner-back-dev

Usage

The package is managed by environment variables:

"PORT": "<Port of the backend, default 3000>",
"MONGODB_USER": "<User of your mongodb>",
"MONGODB_PASSWORD": "<Password of the user>",
"MONGODB_HOST": "<Mongodb host, default localhost>",
"MONGODB_PORT": "<Mongodb port, default 27017>",
"MONGODB_DB": "<Mongodb database>",
"JSON_WEB_TOKEN_KEY": "<some random string for generating json web tokens>"

Starting and stopping

Local folder
<installationPath>/node_modules/.bin/igplaner-dev-cli start     //starting
<installationPath>/node_modules/.bin/igplaner-dev-cli stop      //stopping
Global
igplaner-dev-cli start                                          //starting
igplaner-dev-cli stop                                           //stopping
With systemd

in my case igplaner-back-dev is the service name, please change it to your choice.

sudo systemctl start igplaner-back-dev                          //starting
sudo systemctl stop igplaner-back-dev                           //stopping
sudo systemctl status igplaner-back-dev                         //status

or

sudo service igplaner-back-dev start                            //starting
sudo service igplaner-back-dev stop                             //stopping
sudo service igplaner-back-dev status                           //status

Contributing

Pull requests are welcome.

License

CC BY-NC-ND

Keywords

FAQs

Package last updated on 21 Mar 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc