{"id":19950831,"url":"https://github.com/harshpimpale/travel-package","last_synced_at":"2026-04-06T02:32:53.844Z","repository":{"id":262103730,"uuid":"886220104","full_name":"harshpimpale/Travel-Package","owner":"harshpimpale","description":"This is for the internship task for nodejs development intern. Here a login system and dashboard with travel packages are there.","archived":false,"fork":false,"pushed_at":"2024-11-10T17:12:51.000Z","size":345,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-01T14:42:56.060Z","etag":null,"topics":["axios","expressjs","html","mongodb","nextjs","nodejs","reactjs","rest-api","tailwind-css"],"latest_commit_sha":null,"homepage":"https://travel-package-liard.vercel.app","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/harshpimpale.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-10T14:13:42.000Z","updated_at":"2024-11-10T16:50:16.000Z","dependencies_parsed_at":"2024-11-10T20:39:21.170Z","dependency_job_id":null,"html_url":"https://github.com/harshpimpale/Travel-Package","commit_stats":null,"previous_names":["harshp2109/travel-package","harshpimpale/travel-package"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/harshpimpale/Travel-Package","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harshpimpale%2FTravel-Package","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harshpimpale%2FTravel-Package/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harshpimpale%2FTravel-Package/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harshpimpale%2FTravel-Package/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/harshpimpale","download_url":"https://codeload.github.com/harshpimpale/Travel-Package/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harshpimpale%2FTravel-Package/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274195262,"owners_count":25239146,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-08T02:00:09.813Z","response_time":121,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["axios","expressjs","html","mongodb","nextjs","nodejs","reactjs","rest-api","tailwind-css"],"created_at":"2024-11-13T01:05:42.717Z","updated_at":"2025-12-30T19:17:47.435Z","avatar_url":"https://github.com/harshpimpale.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🌍 Mini Travel Package Platform\n\nA simple travel package listing platform with user authentication, travel package listings, and a booking simulation. This project uses **React.js**, **Next.js**, **Tailwind CSS** for the frontend, and **Node.js** with **MongoDB** for the backend.\n\n## 🚀 Features\n- User Authentication with hardcoded credentials.\n- List of travel packages fetched from MongoDB.\n- Booking simulation with a \"Book Now\" button.\n- Responsive and interactive UI built with Tailwind CSS.\n\n## 📂 Project Structure\n```\n.\n├── backend\n│   ├── server.js\n│   ├── .env\n│   ├── postman\n│   │   └── findmytrip.postman_collection.json\n│   ├── controllers\n│   │   └── packageControllers.js\n│   ├── routes\n│   │   └── packageRoutes.js\n│   ├── models\n│   │   └── Package.js\n│   └── config\n│       └── db.js\n├── frontend\n│   ├── components\n|   |   └── Login.js\n│   │   └── PackageCard.js\n│   ├── pages\n│   │   ├── index.js\n│   │   └── dashboard.js\n│   └── styles\n│       └── globals.css\n├── package.json\n└── README.md\n```\n\n## 🛠️ Tech Stack\n- **Frontend**: React.js, Next.js, Tailwind CSS\n- **Backend**: Node.js, Express.js, MongoDB\n- **API Client**: Axios, Postman\n\n## 🔧 Setup Instructions\n\n### A. For Backend\n\n### 1. Clone the Backend Repository\n```bash\ngit clone --single-branch --branch backend https://github.com/HarshP2109/Travel-Package\n```\n\n### 2. Set Up\nNavigate to the `backend` directory:\n\n```bash\ncd Travel-Package\n```\n\n#### Install Dependencies\n```bash\nnpm install\n```\n\n#### Configure Environment Variables\nCreate a `.env` file in the `backend` directory:\n\n```env\nPORT=5000\nMONGO_URI= Your mongodb url\n```\n\n#### Seed the Database with Travel Packages\nYou can use Postman or MongoDB Compass to add travel packages or directly seed using a script.\n\n#### Run the Backend Server\n```bash\nnpm start\n```\n\nThe backend server should be running at [http://localhost:5000](http://localhost:5000).\n\n\n### B. For Frontend\n\n### 1. Clone the Frontend Repository\n```bash\ngit clone --single-branch --branch frontend https://github.com/HarshP2109/Travel-Package\n```\n\n### 2. Set Up\nNavigate to the `frontend` directory:\n\n```bash\ncd Travel-Package\n```\n\n#### Install Dependencies\n```bash\nnpm install\n```\n\n#### Run the Frontend Server\n```bash\nnpm run dev\n```\n\nThe frontend should be running at [http://localhost:3000](http://localhost:3000).\n\n### C. Testing with Postman\nTo test the API endpoints, use the provided **Postman collection**.\n\n#### Importing Postman Collection\n1. Open Postman.\n2. Click on `Import` in the top left corner.\n3. Select the `findmytrip.postman_collection.json` file (provided in the backend branch inside postman folder).\n4. Click `Import`.\n\n#### Postman Collection: `/api/booked` Endpoint\n- **Method**: `POST`\n- **URL**: `http://localhost:5000/api/booked`\n- **Headers**:\n  - `Content-Type: application/json`\n- **Body (JSON)**:\n  ```json\n  {\n    \"packageId\": 1,\n    \"name\": \"Beach Escape\",\n    \"location\": \"Maldives\",\n    \"price\": 1200\n  }\n  ```\n\n### D. Sample API Endpoints\n- **Get all packages**: \n  - **GET** `http://localhost:5000/api/packages`\n- **Add a new package**: \n  - **POST** `http://localhost:5000/api/packages`\n  - **Body (JSON)**:\n    ```json\n    {\n      \"name\": \"Mountain Adventure\",\n      \"location\": \"Switzerland\",\n      \"description\": \"A thrilling trip in the Alps.\",\n      \"price\": 900\n    }\n    ```\n\n## 📸 Screenshots\nScreenshots are provided in frontend folder named screenshot\n\n## 📦 Sample Data for Seeding\nUse the following JSON data to add initial travel packages:\n\n```json\n[\n  {\n    \"name\": \"Beach Paradise\",\n    \"location\": \"Hawaii\",\n    \"description\": \"Relax on the pristine beaches of Hawaii.\",\n    \"price\": 1500\n  },\n  {\n    \"name\": \"Desert Safari\",\n    \"location\": \"Dubai\",\n    \"description\": \"Experience the thrill of dune bashing.\",\n    \"price\": 700\n  },\n  {\n    \"name\": \"City Lights\",\n    \"location\": \"New York\",\n    \"description\": \"Explore the bustling streets of NYC.\",\n    \"price\": 1300\n  },\n  {\n    \"name\": \"Historic Journey\",\n    \"location\": \"Rome\",\n    \"description\": \"Dive into the rich history of Rome.\",\n    \"price\": 1100\n  },\n  {\n    \"name\": \"Nature Escape\",\n    \"location\": \"New Zealand\",\n    \"description\": \"Experience untouched natural beauty.\",\n    \"price\": 2000\n  }\n]\n```\n\n## 🛠️ Tools \u0026 Resources\n- Node.js\n- MongoDB\n- React.js\n- Next.js\n- Tailwind CSS\n- Postman\n\n## ✨ Credits\nDeveloped by [Harsh](https://github.com/HarshP2109).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharshpimpale%2Ftravel-package","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharshpimpale%2Ftravel-package","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharshpimpale%2Ftravel-package/lists"}