CS 160 – Team 7
Make sure you have the following installed before starting:
- Node.js: 22.20.0 LTS
- npm: 10.9.3
- PostgreSQL: 14.19
- Load the sql example data into the database:
cd backend
npm install
sudo -u postgres psql -d EcoNeighbordb -f /tmp/exampleData.sql
cd ..
cd frontend
npm install# Backend port:
PORT=3000
# Database information
PGHOST=localhost
PGPORT=5432
PGDATABASE=EcoNeighbordb
PGUSER=postgres
PGPASSWORD=your_password
# Nodemailer information
EMAILUSER="your_email"
EMAILPASS="your_email_password"
GOVEMAIL="gov_email"
# cookies and jwt
NODE_ENV="development"
JWT_SECRET=your_secret
# Gemini AI Key (required for AI Recommendations)
GEMINI_API_KEY=your_gemini_key_hereBASE_BACKEND_URL="http://localhost:3000"EcoNeighbor uses Google Gemini to generate automated recommended actions for community reports.
To use the AI feature, each developer must create their own API key.
- Create a Gemini API Key
Visit: https://aistudio.google.com/app/apikey
Sign in using a personal Gmail account
School/work accounts may restrict model access
Click “Create API Key”
Copy the key and paste into your /backend/.env:
GEMINI_API_KEY=your_key_here- Model Requirements
Your API key MUST support the following Gemini 2.x model:
- models/gemini-2.5-flash
- No SDK Needed
We use a direct REST API integration, so no extra NPM package is required.