Skip to content

iamvishalchandra/mybnb

Repository files navigation

MyBnB

A full stack room booking website using NEXT.js.

Language - JavaScript.

Frontend - Next.js, SCSS

Authentication - Next-Auth.

State Management - React-Redux/Toolkit.

API - REST.

Backend - Node, next-connect.

Database - MongoDB(mongoose).

Payment - Stripe.

1) Common Routes

i) Home -> /

home

ii) Room Details -> /room/:id

roomdetails

roomdetails

roomdetails

iii) Login -> /login

login

iv) Register -> /register

Register

v) Forgot Password -> /password/forgot

Forgotpassword

vi) Reset Password -> /password/reset/:token

Resetpassword

vii) 404 error

error

2) User Routes

i) Room Booking/Payment -> via. Stripe

Bookroom

ii) Submit Review -> /room/:id [Only if room is booked by user in past]

Submitreview

iii) Profile View/Update-> /me/update

Profile

iv) My Bookings -> /me/bookings

Bookings

v) Booking Detail -> /me/bookings/:id

Bookingdetail

vi) Invoice -> pdf

Invoice

3) Admin Routes

i) Create New Room -> /admin/rooms/new

NewRoom

ii) All Rooms -> /admin/rooms

Allrooms

iii) Room View/Update -> /admin/rooms/:id

Roomviewupdate

iV) All Room Reviews -> /admin/reviews

Roomreviews

V) All Users -> /admin/users

Allusers

Vi) User View/Update -> /admin/users/:id

User

Vii) All Bookings -> /admin/bookings

Allbookings

Vii) Booking Details -> /admin/bookings/:id

Bookingdetails

Releases

No releases published

Packages

No packages published