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.
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
.
git clone https://github.com/kaushikkumarbora/Netherite.git
cd .\Netherite\client
npm i
cd .\Netherite\server-js
npm i
cd .\Netherite\server-python
pip install requirements.txt
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
.
- Fill in the hostname in
HOST
.USER
PORT
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 inserver-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();
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
Ping-Sweep.mp4
DC_Query.mp4
Discord-
- radwolfsdragon#5966 - Helped understand the problem statement and a life-saver.