This JumboCode project repository powers the Beantown Baby Diaper Bank’s hot map features. Follow the instructions below to install prerequisites, clone the repo, and start development.
We use Node.js to run the development server.
- Download and install Node.js (LTS version recommended):
👉 https://nodejs.org/en/download - Verify installation:
node -v npm -v
We use Git for version control and syncing code.
- Download and install Git:
👉 https://git-scm.com/downloads - Verify installation:
git --version
Open your terminal and run:
git clone https://github.com/JumboCode/beantown-baby-diaper-bank.git
cd beantown-baby-diaper-bankInside the project folder, install dependencies with:
npm installBefore starting development each time, make sure you pull the latest changes:
git pull origin main
npm installRun the following command:
npm run devThen open http://localhost:3000 in your browser.
Our API routes now use Prisma to talk directly to the Supabase Postgres database. Before hitting them locally:
-
Create a
.env.localfile in the project root (Next.js loads it automatically). -
Add the Supabase connection string. Prisma expects the full URL including any optional query params Supabase suggests (e.g.
?pgbouncer=true&connection_limit=1):DATABASE_URL=postgresql://YOUR_USER:YOUR_PASSWORD@YOUR_HOST:6543/postgres
-
Install dependencies (this runs
prisma generateautomatically):npm install
If you already have
node_modules, you can regenerate manually withnpm run prisma:generate. -
Restart
npm run devso the new env vars are picked up.
- Always
git pullbefore making changes. - Create a new branch for your work:
git checkout -b feature/my-feature
- Commit and push your branch, then open a Pull Request (PR) for review.
- Node.js docs: https://nodejs.org/docs
- Git docs: https://git-scm.com/doc
- Next.js docs (framework used in this repo): https://nextjs.org/docs