nmikolaj / summer-house

0 stars 0 forks source link

Summer House

A responsive website for managing and booking a summer house, built with vanilla HTML, CSS, JavaScript, Node.js, Express, and MongoDB.

Features

Screenshots

user_mobile admin_panel
User's Calendar (Mobile) Admin Panel

Technologies Used

Frontend Description
HTML/CSS Structure and styling.
JavaScript (Vanilla JS) Handling interactivity, calendar, dynamic price list.
AOS Library Animations and smooth transitions.
Backend Description
Node.js Server-side JavaScript runtime.
Express.js Web framework for Node.js.
MongoDB Storing booking data.
Mongoose Object Data Modeling (ODM) library for MongoDB.
REST API Communication between frontend and backend.

Installation

To run this project locally, follow these steps:

  1. Clone the repository:

    git clone https://github.com/nmikolaj/summer-house.git
    cd summer-house-booking
  2. Install dependencies:

    npm install
  3. Set up environment variables: Create a `.env` file in the root directory and add your MongoDB connection string:

    MONGO_URI=your-mongodb-uri
    PORT=3000
  4. Run the server:

    cd backend
    node server.js
  5. View in browser:

    • User's Website: \public\user\index.html
    • Admin Panel: \public\admin\index.html