Skip to content

Airbnb Clone : RESTful API for homestay reservation system integrated with Midtrans’ core api payment gateway.

Notifications You must be signed in to change notification settings

GroupProject3-Kelompok2/BE

Repository files navigation

📑 About the Project

AirBnB Project

This RESTful API was developed by using Golang and written based on Clean Architecture principles. Built with Echo as web framework, GORM as ORM, MySQL as DBMS etc.

🛠 Tools

Backend:
GitHub Visual Studio Code MySQL Go JWT Swagger Postman MidTrans

Deployment:
Google Cloud Google Cloud Storage Docker Ubuntu

Communication:
GitHub Discord

🔗 ERD

🔥 Open API

Simply click here to see the details of endpoints we have agreed with our FE team.

👶 Users
Method Endpoint Params q-Params JWT Token Function
POST /login - - NO Login to the system
POST /register - - YES Register a new user
PUT /users user_id - YES Update user profile by admin
DELETE /users user_id - YES Deactive user profile by admin
GET /users - - YES List users
GET /users user_id - YES Show user profile
PUT /users - - YES Update user profile
📑 Homestays
Method Endpoint Params JWT Token Function
POST /classes - YES Register new class
GET /classes - YES Get list class
GET /classes class_id YES Get class
PUT /classes class_id YES Edit class
DELETE /classes class_id YES Delete book
📠 Reservations
Method Endpoint Params JWT Token Function
POST /mentees - YES Register new mentee
GET /mentees - YES List Mentees
GET /mentees mentee_id YES Mentee Profile include its Feedbacks
PUT /mentees mentee_id YES Update Mentee Profile
DELETE /mentees mentee_id YES Deactive Mentee Profile
DELETE /mentees mentee_id/feedbacks YES Mentee Profile include its Feedbacks
🔊 Payments
Method Endpoint Params JWT Token Function
POST /feedbacks - YES Register feedback for mentees
PUT /feedbacks feedback_id YES Update selected feedback for mentees
DELETE /feedbacks feedback_id YES Unregister spesif feedback
🔊 Reviews
Method Endpoint Params JWT Token Function
POST /feedbacks - YES Register feedback for mentees
PUT /feedbacks feedback_id YES Update selected feedback for mentees
DELETE /feedbacks feedback_id YES Unregister spesif feedback

🛠️ How to Run Locally

  • Clone it
$ git clone https://github.com/GroupProject3-Kelompok2/BE.git
  • Go to directory
$ cd BE
  • Run the project
$ go run main.go
  • Voila! 🪄

🧰Backend

🤖 Author

  • Belhi Romdona
    GitHub
  • Dimas A Yudhana
    GitHub

Created by Group 2 ©️ 2023

About

Airbnb Clone : RESTful API for homestay reservation system integrated with Midtrans’ core api payment gateway.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages