Welcome to the Coffee Shop Backend Web Project! This repository contains the back-end source code for the Online Coffee Shop web application. With Express.js and NodeJs structure.
Find a wide range of selected coffee, from coffee beans, ground coffee, to quality coffee equipment here. Order your favorite coffee easily and enjoy the best coffee experience at home.
- Explore a wide range of coffee products from various local and international roasters.
- Read complete product descriptions to help you choose the right coffee.
- Order coffee easily and safely through a trusted online payment system.
- Get exciting promos and special offers.
- Easily monitor your order status.
Built using
To run the project locally, follow these simple steps:
- Clone this repository
git clone https://github.com/putragabrielll/fwg17-go-backend
cd fwg17-go-backend
- Open in VSCode
code .
- install all the dependencies
go mod tidy
- run the project
go run .
To run this project, you will need to add the following environment variables to your .env file
PORT
DATABASE_URL
APP_SECRET
POST /login
POST /register
POST /forgot-password
Parameter | Type | Description |
---|---|---|
users |
GET |
Get a list of users data |
users/:id |
GET |
Get a detailed users data |
users |
POST |
Insert a users data |
users/:id |
PATCH |
Update a users data |
users/:id |
DELETE |
Delete a users data |
products |
GET |
Get a list of products data |
products/:id |
GET |
Get a detailed products data |
products |
POST |
Insert a products data |
products/:id |
PATCH |
Update a products data |
products/:id |
DELETE |
Delete a products data |
promo |
GET |
Get a list of promo data |
promo/:id |
GET |
Get a detailed promo data |
promo |
POST |
Insert a promo data |
promo/:id |
PATCH |
Update a promo data |
promo/:id |
DELETE |
Delete a promo data |
product-size |
GET |
Get a list of product size data |
product-size/:id |
GET |
Get a detailed product size data |
product-size/:id |
PATCH |
Update a product size data |
product-variant |
GET |
Get a list of product variant data |
product-variant/:id |
GET |
Get a detailed product variant data |
product-variant |
POST |
Insert a product variant data |
product-variant/:id |
PATCH |
Update a product variant data |
product-variant/:id |
DELETE |
Delete a product variant data |
categories |
GET |
Get a list of categories data |
categories/:id |
GET |
Get a detailed categories data |
categories |
POST |
Insert a categories data |
categories/:id |
PATCH |
Update a categories data |
categories/:id |
DELETE |
Delete a categories data |
tags |
GET |
Get a list of tags data |
tags/:id |
GET |
Get a detailed tags data |
tags |
POST |
Insert a tags data |
tags/:id |
PATCH |
Update a tags data |
tags/:id |
DELETE |
Delete a tags data |
product-tags |
GET |
Get a list of product tags data |
product-tags/:id |
GET |
Get a detailed product tags data |
product-tags |
POST |
Insert a product tags data |
product-tags/:id |
PATCH |
Update a product tags data |
product-tags/:id |
DELETE |
Delete a product tags data |
product-categories |
GET |
Get a list of product categories data |
product-categories/:id |
GET |
Get a detailed product categories data |
product-categories |
POST |
Insert a product categories data |
product-categories/:id |
PATCH |
Update a product categories data |
product-categories/:id |
DELETE |
Delete a product categories data |
product-ratings |
GET |
Get a list of product ratings data |
product-ratings/:id |
GET |
Get a detailed product ratings data |
product-ratings |
POST |
Insert a product ratings data |
product-ratings/:id |
PATCH |
Update a product ratings data |
product-ratings/:id |
DELETE |
Delete a product ratings data |
orders |
GET |
Get a list of orders data |
orders/:id |
GET |
Get a detailed orders data |
orders |
POST |
Insert a orders data |
orders/:id |
PATCH |
Update a orders data |
orders/:id |
DELETE |
Delete a orders data |
order-details |
GET |
Get a list of order details data |
order-details/:id |
GET |
Get a detailed order details data |
order-details |
POST |
Insert a order details data |
order-details/:id |
PATCH |
Update a order details data |
order-details/:id |
DELETE |
Delete a order details data |
Gin-Gonic: a fast and minimalist web framework, this effort is dedicated to creating fast as well as resilient and scalable server-side applications.
Go: Go serves as the foundation for this project, utilizing a non-blocking and event-driven architecture to ensure scalable and high-performance server-side application development.
https://github.com/putragabrielll/fwg17-beginner-frontend
The project structure is organized as follows:
- src/: contains the source code of the project.
- asset/: image and icon media.
- components/: Reusable component used throughout the project.
- pages/: Individual pages of the application.
Contributions are always welcome!
If you have any feedback, please reach out to us at puragmahk@gmail.com