- Node.js (v20 or higher)
- npm
- Database URL from NeonDB
git clone https://github.com/your-username/your-repo.git
# Navigate to backend
cd backend
# Install dependencies
npm install
# Configure environment
cp .env.example .env
- Visit NeonDB Console
- Create new project
- Copy connection string
- Update
.env
:
DATABASE_URL="your-neondb-connection-string"
# Run migrations
npx prisma migrate dev
npm run dev
Server runs at http://localhost:3000
- Ensure NeonDB connection string is correctly formatted
- Check if all migrations are applied
- Verify Node.js version compatibility(node -v) must be 22