You have two options:
- Go to https://www.mongodb.com/cloud/atlas
- Create a free account and cluster
- Get your connection string (looks like:
mongodb+srv://user:pass@cluster.mongodb.net/dbname) - Update
.envfile:MONGODB_URI=mongodb+srv://your-connection-string
macOS:
brew tap mongodb/brew
brew install mongodb-community
brew services start mongodb-communityLinux:
# Ubuntu/Debian
sudo apt-get install mongodb
# Start MongoDB
sudo systemctl start mongodbWindows: Download from https://www.mongodb.com/try/download/community
Once MongoDB is running, create the admin user:
npm run seed:adminThis will create:
- Email: 0xbugatti@gmail.com
- Username: 0xbugatti
- Password: @Pentestpass
- Role: admin
In separate terminals:
Terminal 1 - Backend:
cd backend
npm run devTerminal 2 - Frontend:
cd frontend
npm run dev- Frontend: http://localhost:3000
- Backend API: http://localhost:4000
Login with:
- Email:
0xbugatti@gmail.com - Password:
@Pentestpass
If you see ECONNREFUSED:
- Check if MongoDB is running:
brew services list(macOS) orsudo systemctl status mongodb(Linux) - Or use MongoDB Atlas cloud service
- Verify
.envhas correctMONGODB_URI
If port 3000 or 4000 is in use:
- Change ports in
.env:BACKEND_PORT=4001 FRONTEND_PORT=3001 - Update
CORS_ORIGINaccordingly
# Install root dependencies
npm install
# Install backend dependencies
cd backend && npm install
# Install frontend dependencies
cd frontend && npm install
# Install script dependencies
cd scripts && npm install