/epcis-iot-backend

GraphQL Backend for configuring Sites and storing/updating them in MongoDB.

Primary LanguageTypeScriptApache License 2.0Apache-2.0

EPCIS-IoT GraphQL Backend (Deprecated)

Refer to tiguitto / TrackNTrace Landing Page for usage of Telegraf to parse EPCIS and IOT Information into InfluxDB

Development and Deployment

Windows 10

package.json has %NODE_ENV% as the Node Environment Variable in it. In order to run it with Windows Command Prompt (cmd) do the following:

Compiling with webpack:

  • Development:

      set NODE_ENV=development&&npm run build
    
  • Production:

      set NODE_ENV=production&&npm run build
    

Setup environment variables in a .env file in the root folder & launch the code using:

npm run build:env

Linux/Mac-OS

Change the %NODE_ENV% to $NODE_ENV in the package.json file and do the following:

Compiling with webpack:

  • Development:

      NODE_ENV=development npm run build
    
  • Production:

      NODE_ENV=production npm run build
    

Setup environment variables in a .env file in the root folder & launch the code using:

npm run build:env

Related Repositories

  • ng-epcis-iot: Frontend for EPCIS-IoT GraphQL Backend
  • EPCIS-IoT-Arduino: Arduino Library to program ESP-32 with BME280 to send sensor data in InfluxDB's Line Protocol over WLAN to an MQTT Broker