Before setting up the SecureNet Monitoring Platform, ensure you have:
- Node.js (v16 or higher) - Download here
- MongoDB - Download here or use MongoDB Atlas
- Git - Download here
- VS Code (recommended) - Download here
- Extract the downloaded ZIP file
- Open the extracted folder in VS Code
- Open the integrated terminal in VS Code (
Ctrl+`` orView > Terminal`)
Install frontend dependencies:
npm installInstall backend dependencies:
cd server
npm install
cd ..- Install MongoDB Community Edition
- Start MongoDB service:
- Windows: MongoDB should start automatically
- macOS:
brew services start mongodb/brew/mongodb-community - Linux:
sudo systemctl start mongod
- Create account at MongoDB Atlas
- Create a new cluster
- Get connection string from "Connect" button
- Replace
MONGODB_URIin.envfile
- Copy
.env.exampleto.env:
cp .env.example .env- Edit
.envfile with your settings:
MONGODB_URI=mongodb://localhost:27017/securenet
JWT_SECRET=your-super-secret-jwt-key-change-this
JWT_EXPIRE=24h
PORT=3001
NODE_ENV=development
FRONTEND_URL=http://localhost:5173Important: Change the JWT_SECRET to a secure random string!
cd server
npm startYou should see:
MongoDB connected
SecureNet server running on port 3001
Default admin user created:
Email: [email protected]
Password: admin123
npm run devYou should see:
Local: http://localhost:5173/
Network: use --host to expose
- Open your browser and go to:
http://localhost:5173 - Login with default credentials:
- Email:
[email protected] - Password:
admin123
- Email:
Error: connect ECONNREFUSED 127.0.0.1:27017
Solution: Make sure MongoDB is running
- Check if MongoDB service is started
- Verify connection string in
.env
Error: listen EADDRINUSE: address already in use :::3001
Solution:
- Kill process using the port:
lsof -ti:3001 | xargs kill -9 - Or change PORT in
.envfile
Error: Cannot find module 'express'
Solution: Install dependencies
cd server
npm installAccess to fetch blocked by CORS policy
Solution: Check that backend is running on port 3001
- ES7+ React/Redux/React-Native snippets
- Tailwind CSS IntelliSense
- MongoDB for VS Code
- Thunder Client (API testing)
# Check if ports are in use
netstat -an | grep :3001
netstat -an | grep :5173
# View MongoDB logs (if local)
tail -f /usr/local/var/log/mongodb/mongo.log
# Reset database (development only)
mongo securenet --eval "db.dropDatabase()"- Explore the Dashboard: Navigate through different sections
- Create Users: Register new users with different roles
- Monitor Traffic: Watch real-time traffic simulation
- Test Responses: Try automated response features (Admin only)
- Customize: Modify components and add new features
npm run build
# Upload dist/ folder to hosting service- Create account on hosting platform
- Connect GitHub repository
- Set environment variables
- Deploy from
server/directory
- Create production cluster
- Update connection string
- Set up database users and security
If you encounter issues:
- Check the console for error messages
- Verify all services are running
- Check network connectivity
- Review the logs in terminal
For development questions, refer to: