Skip to content

itspa1/shop-analytics-backend

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
api
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Pi Sniffer Backend

The Backend server code to store all the frames coming from the raspberry pi and also enable api's interaction for the same.

Steps to run this backend
  • clone this repo

  • ensure node.js is installed (used version: lts(12.14.0))

  • run npm install

  • add main.js in config directory

  •   module.exports = {
          clientUrl: "frontend service",
          port: 3000,
          mqttUsername: "mqtt service username",
          mqttPassword: "mqtt service password ",
          mqttHost: "mqtt service host",
          mqttPort: mqtt service port,
          mqttTopics: ["frame_topic","cache_frame_topic"]
      };
    
  • add config.js in config directory

  •   module.exports = {
      development: {
        username: "someUser",
        password: "somePassword",
        database: "someDatabase",
        host: "someHose",
        dialect: "postgres",
        logging: false,
        pool: {
          max: 5,
          idle: 10000,
        },
      }
    };
    
  • run node index.js

About

The backend service to store the captured probes from the pi.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published