Skip to content

subhasishgoswami/Netherite

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discover Your Network


Problem Statement

In an increasingly mobile world, asset monitoring is an important activity. In cases such as asset loss or even otherwise, appropriate asset monitoring is crucial in ensuring information security at all times. As part of this challenge, teams are expected to build a tool that will be able to monitor assets and be able to tell users all key information pertaining to the same.

Installation

Use the package manager npm to install dependencies listed in package.json and pip to install dependencies for server-python listed in server-python\requirements.txt.

Download Repository

git clone https://github.com/kaushikkumarbora/Netherite.git

Install Dependencies

Client (Frontend)

cd .\Netherite\client
npm i

Server (Backend - Node.js)

cd .\Netherite\server-js
npm i

Server (Backend - Python) - Optional

cd .\Netherite\server-python
pip install requirements.txt

Install PostgreSQL

Download

Usage

First Time

For the first time we need to build out React.js application in .\client folder, setup the database schema in PostgreSQL. Make sure PostgreSQL is running and you can login to the database via PgAdmin.

Build React.js Application.

cd .\client\
npm run build

Fill in details about the database in server-js\database\config.js.

  1. Fill in the hostname in HOST.
  2. USER
  3. PORT
  4. PASSWORD

Rest of the fields can be left as is.

module.exports = {
    HOST: "localhost",
    USER: "postgres",
    PORT: 5432,
    PASSWORD: "kaushik",
    DB: "Asset_Monitoring",
    dialect: "postgres",
    pool: {
        max: 5,
        min: 0,
        acquire: 30000,
        idle: 10000
    }
};

Set the Force argument of sequelize.sync() method in server-js\server.js

//Create Express object and connect to database
const app = express();
database.sequelize.sync(force = true);

Run the node.js server once and close it (Ctrl + C) once it loads.

cd ..\server-js\
npm start

Remove the force argument.

//Create Express object and connect to database
const app = express();
database.sequelize.sync();

Subsequent Use

After you have done the first time setup, you can run the application directly from .\server-js folder and visit http:\\localhost:4000\ to use the application.

cd .\server-js
npm start

Video

Ping Sweep

Ping-Sweep.mp4

DC Query

DC_Query.mp4

Screenshots

Frontend

Authors

Credits

Discord-

  1. radwolfsdragon#5966 - Helped understand the problem statement and a life-saver.

License

MIT

About

Proof of concept

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 62.8%
  • VBScript 28.5%
  • CSS 4.1%
  • HTML 3.4%
  • SCSS 1.2%