An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          



![][views] ![][stars] ![][forks] ![][issues] ![][license] ![][repo-size]





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βœ…

## βš™οΈ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