{"id":31702309,"url":"https://github.com/trngnneee/touristbooking","last_synced_at":"2026-05-05T19:33:02.314Z","repository":{"id":292819867,"uuid":"952528582","full_name":"trngnneee/TouristBooking","owner":"trngnneee","description":"A repository for my project 1 about Backend using Nodejs/ExpressJs with FrontEnd UI is supplied","archived":false,"fork":false,"pushed_at":"2025-06-03T12:07:40.000Z","size":15473,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-08T04:30:59.205Z","etag":null,"topics":["cloudinary","expressjs","jwt","nodejs","pug","vnpay","zalopay"],"latest_commit_sha":null,"homepage":"https://touristbooking.onrender.com","language":"JavaScript","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/trngnneee.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-03-21T12:35:38.000Z","updated_at":"2025-06-03T12:07:42.000Z","dependencies_parsed_at":"2025-10-08T04:31:08.077Z","dependency_job_id":"ea8344d3-f32f-49e4-a1bf-6babf9a7b06b","html_url":"https://github.com/trngnneee/TouristBooking","commit_stats":null,"previous_names":["trngnneeee/touristbooking","trngnneee/touristbooking"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/trngnneee/TouristBooking","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trngnneee%2FTouristBooking","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trngnneee%2FTouristBooking/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trngnneee%2FTouristBooking/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trngnneee%2FTouristBooking/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trngnneee","download_url":"https://codeload.github.com/trngnneee/TouristBooking/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trngnneee%2FTouristBooking/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000701,"owners_count":26082837,"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-10-08T02:00:06.501Z","response_time":56,"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":["cloudinary","expressjs","jwt","nodejs","pug","vnpay","zalopay"],"created_at":"2025-10-08T21:50:31.512Z","updated_at":"2025-10-08T21:50:32.732Z","avatar_url":"https://github.com/trngnneee.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🌍 Tourist Booking\n\nA full-stack IoT web application for managing tourist bookings and packages. Built with **Node.js (Express)** for the backend and UI powered by 28Tech (PUG/CSS/JS).\n\n## 📋 Description\n\nThis project demonstrates modern web development with features such as:\n\n* Server-side rendering\n* RESTful APIs\n* JWT authentication\n* Database integration with MongoDB\n* Automatic email sending for password reset via OTP\n\n## 🚀 Features\n\n* ⚙️ Backend with Node.js and Express.js\n* 🔐 JWT-based Authentication using [jsonwebtoken](https://github.com/auth0/node-jsonwebtoken)\n* 🗔️ MongoDB Database integration\n* 🔑 Password hashing and encryption using bcrypt\n* 📄 Form validation:\n  * Client-side using [Just-validate](https://github.com/horprogs/Just-validate)\n  * Server-side using [Joi](https://joi.dev/api/?v=17.13.3)\n* ✉️ Email sending with [Nodemailer](https://nodemailer.com/)\n\n## 🧱 Tech Stack\n\n| Layer          | Technology                                                 |\n| -------------- | ---------------------------------------------------------- |\n| Backend        | Node.js, Express.js                                        |\n| Frontend       | Next.js (provided by 28Tech)                               |\n| Database       | MongoDB                                                    |\n| Authentication | [jsonwebtoken](https://github.com/auth0/node-jsonwebtoken) |\n| Security       | bcrypt, crypto-js                                          |\n| Validation     | [Just-validate](https://github.com/horprogs/Just-validate), [Joi](https://joi.dev/api/?v=17.13.3)                                         |\n| Email          | [Nodemailer](https://nodemailer.com/)                                                 |\n\n## 🛠️ How to Run Locally\n\n### 1️⃣ Clone the Repository\n\n```bash\ngit clone https://github.com/trngnneeee/TouristBooking.git\ncd TouristBooking\n```\n\n### 2️⃣ Install Dependencies\n\n```bash\nyarn install\n```\n\n### 3️⃣ Setup Environment Variables\n\n* Create `.env` file in `/server` with:\n\n  ```\n  DATABASE = \"LINK_TO_DB\"\n  JWT_SECRET = \"YOUR_KEY\"\n  EMAIL_USERNAME_NODEMAILER = \"\"YOUR_KEY\"\n  EMAIL_PASSWORD_NODEMAILER = \"YOUR_KEY\"\n  EMAIL_SECURE = \"BOOLEAN_VALUE\"\n  CLOUDINARY_SECRET_API = \"YOUR_KEY\"\n  ZALOPAY_APPID = \"YOUR_KEY\"\n  ZALOPAY_KEY1 = \"YOUR_KEY\"\n  ZALOPAY_KEY2 = \"YOUR_KEY\"\n  ZALOPAY_ENDPOINT = \"YOUR_END_POINT\"\n  NGROK_URL = \"YOUR_WEBSITE_DOMAIN\"\n  VNPAY_TMNCODE = \"YOUR_KEY\"\n  VNPAY_SECRET_KEY = \"YOUR_KEY\"\n  VNPAY_URL = \"https://sandbox.vnpayment.vn/paymentv2/vpcpay.html\";\n  ```\n\n### 4️⃣ Run the Project\n\n\n```bash\nyarn start\n```\n\n### 🌐 Access the Application\n\n* Local Website: [http://localhost:3000](http://localhost:3000)\n\n### Management\n- Client: [http://localhost:3000](http://localhost:3000)\n- Admin: [http://localhost:3000/admin/dashboard](http://localhost:3000/admin/dashboard): Get started by creating an Admin account and waiting for being approved\n\n## 📬 Contact\n\nFor any queries or contributions, feel free to reach out:\n\n* 📧 Email: [dtn06052005@gmail.com](mailto:dtn06052005@gmail.com)\n* 🐙 GitHub: [https://github.com/trngnneeee](https://github.com/trngnneeee)\n\n## 📝 License\n\nThis project is licensed under the MIT License.\n\n## 😊 Enjoy the Experience\n\nHappy exploring and managing your tourist bookings! Have a great journey using this platform 🚀🌟.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrngnneee%2Ftouristbooking","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrngnneee%2Ftouristbooking","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrngnneee%2Ftouristbooking/lists"}