Skip to content

2)Setup & Installation

SHADIL AM edited this page Jul 20, 2025 · 1 revision

Setup & Installation Guide

Welcome to the Nearby Hostels Setup Guide! Here you'll find step-by-step instructions to get the project up and running.

Prerequisites

Before you begin, make sure you have the following installed:

  • Node.js (v18 or higher): Download Node.js
  • PostgreSQL Database: Either local or cloud-based(neon)
  • Firebase Project: For authentication
  • Cloudinary Account: For image management.

Step 1: Environment Configuration

Create a .env.local file in the root directory with the following variables:

# Database Configuration
DATABASE_URL="postgresql://username:password@localhost:5432/hostel_management"

# Firebase Configuration (for authentication)
NEXT_PUBLIC_FIREBASE_API_KEY="your-firebase-api-key"
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN="your-project.firebaseapp.com"
NEXT_PUBLIC_FIREBASE_PROJECT_ID="your-project-id"
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET="your-project.appspot.com"
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID="123456789"
NEXT_PUBLIC_FIREBASE_APP_ID="your-app-id"

# Cloudinary Configuration (for image uploads)
CLOUDINARY_CLOUD_NAME=your_cloud_name
CLOUDINARY_API_KEY=your_api_key
CLOUDINARY_API_SECRET=your_api_secret

Clone this wiki locally