Skip to content

ayushzDevs/BNB_Website

Repository files navigation

BNB Couples

A boutique-style listings app for curated stays built with Express, EJS, and MongoDB.

Highlights

  • MVC architecture with controllers, routes, models, and views
  • Authenticated listing creation and owner-only editing/deleting
  • Custom design system and responsive UI
  • Validation middleware for listings and reviews

Architecture Flow

flowchart LR
  A[Request] --> B[Routes]
  B --> C[Controllers]
  C --> D[Models]
  D --> C
  C --> E[Views]
  E --> F[Response]
Loading

Setup

  1. Install dependencies:
    npm install
  2. Copy environment variables:
    cp .env.example .env
  3. Update .env with your credentials.
  4. Start MongoDB locally or provide a cluster URI.
  5. Run the app:
    node index.js
  6. Open http://localhost:8080

Environment Variables

  • PORT
  • MONGO_URL
  • SESSION_SECRET
  • COOKIE_SECRET

Usage (Step-by-step)

  1. Start the server.
  2. Go to /login.
  3. Log in with your user.
  4. Create a new listing.
  5. Edit or delete your own listings from the listing page.
  6. Leave reviews on listing detail pages.

Credits

Ayush Chakraborty — theayushchakraborty@gmail.com

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors