Skip to content

🏨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

License

Notifications You must be signed in to change notification settings

Khushal-ag/TripHive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation


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
 
Β Β   
cloudinary: ^1.36.1
 
Β Β   
passport: ^0.6.0
 
Β Β   
multer: ^1.4.5-lts.1
 
Β Β   
express: ^4.18.2
 
Β Β   
mongoose: ^6.9.2
 
Β Β   
path: ^0.12.7
 
Β Β   
joi: ^17.9.1
 
Β Β   
ejs: ^3.1.9
 
Β Β   
sanitize-html: ^2.10.0
 
Β Β   
express-mongo-sanitize: ^2.2.0
 
Β Β 


πŸ“Έ 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.
[khushal@arch]$ git clone https://github.com/Khushal-ag/TripHive.git
[khushal@arch]$ cd TripHive
  • πŸ‘ŒCreate .env file & add your own CONFIGS
SESSION_SECRET = <Your_session_secret>
MONGO_URI = <Your_database_url>
PORT = <Port_number>

CLOUDINARY_CLOUD_NAME = <Your_cloud_name>
CLOUDINARY_API_KEY = <Your_api_key>
CLOUDINARY_SECRET = <Your_secret>

MAPBOX_TOKEN = <Your_Mapbox_Token>
  • πŸ‘ŸRun the Website using πŸ’»Command Line ( yarn should be installed ) :
[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

Note: It may take up to 24h for the contrib.rocks plugin to update because it's refreshed once a day.

About

🏨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

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks