https://github.com/khushal-ag/triphive
π¨A hotel review website that allows users to find hotels and leave reviewsπ for them πIn return user get rewarded πͺ for their valuable reviewsβ
. β β β β β β β β β βββββββββββProject Resources :- https://drive.google.com/drive/folders/1CGupFz8X3qS38wwaGCr3G0Ldn9yEYOnf?usp=share_link
https://github.com/khushal-ag/triphive
css3 ejs-template-engine expressjs fullstack github html5 javascript mongodb mongoosejs nodejs
Last synced: about 1 month ago
JSON representation
π¨A hotel review website that allows users to find hotels and leave reviewsπ for them πIn return user get rewarded πͺ for their valuable reviewsβ . β β β β β β β β β βββββββββββProject Resources :- https://drive.google.com/drive/folders/1CGupFz8X3qS38wwaGCr3G0Ldn9yEYOnf?usp=share_link
- Host: GitHub
- URL: https://github.com/khushal-ag/triphive
- Owner: Khushal-ag
- License: gpl-3.0
- Created: 2023-02-20T18:16:24.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2025-04-07T06:06:53.000Z (10 months ago)
- Last Synced: 2025-04-11T22:09:50.222Z (10 months ago)
- Topics: css3, ejs-template-engine, expressjs, fullstack, github, html5, javascript, mongodb, mongoosejs, nodejs
- Language: EJS
- Homepage: https://triphive.khushalagarwal.me
- Size: 24.8 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
![][views] ![][stars] ![][forks] ![][issues] ![][license] ![][repo-size]

### π¨A hotel review website that allows users to find hotels and leave reviewsπ for them
### πIn return user get rewarded πͺ for their valuable reviewsβ
## βοΈDependencies Used
---
**[β
**@mapbox/mapbox-sdk** ^0.15.0
β][mapbox]**Β Β
**[β
**cloudinary:** ^1.36.1
β][cloudinary]**Β Β
**[β
**passport:** ^0.6.0
β][passport]**Β Β
**[β
**multer:** ^1.4.5-lts.1
β][multer]**Β Β
**[β
**express:** ^4.18.2
β][express]**Β Β
**[β
**mongoose:** ^6.9.2
β][mongoose]**Β Β
**[β
**path:** ^0.12.7
β][path]**Β Β
**[β
**joi:** ^17.9.1
β][joi]**Β Β
**[β
**ejs:** ^3.1.9
β][ejs]**Β Β
**[β
**sanitize-html:** ^2.10.0
β][sanitize-html]**Β Β
**[β
**express-mongo-sanitize:** ^2.2.0
β][express-mongo-sanitize]**Β Β
---
## πΈ Screen Shots
| Landing Page | Home Page |
| ------------ | ----------- |
| ![landing] | ![homepage] |
| Hotel Detail | Reward Section |
| ------------ | -------------- |
| ![hotel] | ![reward] |
| New Hotel Page | Edit Hotel Page |
| -------------- | --------------- |
| ![new] | ![edit] |
| Register Page | Login Page |
| ------------- | ---------- |
| ![register] | ![login] |
## π οΈBuilding from Source
- β¬οΈFetch latest source code from master branch.
```console
[khushal@arch]$ git clone https://github.com/Khushal-ag/TripHive.git
[khushal@arch]$ cd TripHive
```
- πCreate **.env** file & add your own **CONFIGS**
```js
SESSION_SECRET =
MONGO_URI =
PORT =
CLOUDINARY_CLOUD_NAME =
CLOUDINARY_API_KEY =
CLOUDINARY_SECRET =
MAPBOX_TOKEN =
```
- πRun the Website using π»Command Line ( **yarn** should be installed ) :
```console
[khushal@arch TripHive]$ yarn
[khushal@arch TripHive]$ yarn start
```
## πDirectory Structure
```
.
βββ cloudinary
β βββ index.js
βββ CODE_OF_CONDUCT.md
βββ controllers
β βββ hotels.js
β βββ reviews.js
β βββ shop.js
β βββ users.js
βββ index.js
βββ LICENSE
βββ models
β βββ hotel.js
β βββ review.js
β βββ user.js
βββ package.json
βββ yarn.lock
βββ public
β βββ assets
β βββ javascripts
β β βββ clusterMap.js
β β βββ showMap.js
β β βββ validateForm.js
β βββ stylesheets
β βββ home.css
β βββ map.css
β βββ nav.css
β βββ pageNotFound.css
β βββ shop.css
β βββ stars.css
βββ README.md
βββ routes
β βββ hotelRoutes.js
β βββ reviewRoutes.js
β βββ shopRoutes.js
β βββ userRoutes.js
βββ schemas.js
βββ utils
β βββ catchAsync.js
β βββ expressError.js
β βββ middlewares.js
βββ vercel.json
βββ views
βββ error.ejs
βββ home.ejs
βββ hotel
β βββ edit.ejs
β βββ index.ejs
β βββ new.ejs
β βββ show.ejs
βββ layouts
β βββ boilerplate.ejs
βββ pageNotFound.ejs
βββ partials
β βββ flash.ejs
β βββ footer.ejs
β βββ navbar.ejs
β βββ stars.ejs
βββ shop
β βββ index.ejs
βββ user
βββ login.ejs
βββ register.ejs
```
## β’οΈContributors
[![][contributors]][contributors-graph]
_Note: It may take up to 24h for the [contrib.rocks][contrib-rocks] plugin to update because it's refreshed once a day._
[views]: https://komarev.com/ghpvc/?username=TripHive&label=view%20counter&color=red&style=flat
[repo-size]: https://img.shields.io/github/repo-size/Khushal-ag/TripHive
[issues]: https://img.shields.io/github/issues-raw/Khushal-ag/TripHive
[license]: https://img.shields.io/github/license/Khushal-ag/TripHive
[forks]: https://img.shields.io/github/forks/Khushal-ag/TripHive?style=flat
[stars]: https://img.shields.io/github/stars/Khushal-ag/TripHive
[contributors]: https://contrib.rocks/image?repo=Khushal-ag/TripHive&max=500
[contributors-graph]: https://github.com/Khushal-ag/TripHive/graphs/contributors
[contrib-rocks]: https://contrib.rocks/preview?repo=Khushal-ag%2FTripHive
[mapbox]: https://www.npmjs.com/package/@mapbox/mapbox-sdk
[cloudinary]: https://www.npmjs.com/package/cloudinary
[passport]: https://www.npmjs.com/package/passport
[multer]: https://www.npmjs.com/package/multer
[express]: https://www.npmjs.com/package/express
[mongoose]: https://www.npmjs.com/package/mongoose
[path]: https://www.npmjs.com/package/path
[joi]: https://www.npmjs.com/package/joi
[ejs]: https://www.npmjs.com/package/ejs
[sanitize-html]: https://www.npmjs.com/package/sanitize-html
[express-mongo-sanitize]: https://www.npmjs.com/package/express-mongo-sanitize
[landing]: https://graph.org/file/17cea01409d517ec8614b.png
[homepage]: https://graph.org/file/5496aa1234f629edb3d63.png
[hotel]: https://graph.org/file/365f262d8114e8cd2432a.png
[reward]: https://graph.org/file/8fd4d2cac55a7667a2759.png
[login]: https://graph.org/file/55aa6c045848ddb1c19b9.png
[register]: https://graph.org/file/b13e90c173d3db9a8e219.png
[edit]: https://graph.org/file/bba7b693d62f775c91ce2.png
[new]: https://graph.org/file/5d617077c9dfdbd6e268a.png