This is the backend used to serve customers
-
Go: Go (or Golang) is the programming language that can develop an API with high performance and scalable.
-
Echo: Echo is a high-performance, minimalist web framework for the Go programming language. It is known for its simplicity, speed, and robustness. Echo is commonly used for building web applications and APIs due to its fast routing capabilities and low memory footprint. It provides a clean and elegant API for handling HTTP requests, routing, middleware, and more.
-
PostgreSQL: PostgreSQL is a powerful, open-source relational database management system. It is used for storing and managing data related to products, customers, orders, and more in the online store application.
-
JWT (JSON Web Tokens): JWT is a standard for securely transmitting information between parties as a JSON object. In the online store application, JWT is used for implementing authentication and authorization mechanisms.
-
Pgx: Pgx is a pure Go driver and toolkit for PostgreSQL. The pgx driver is a low-level, high performance interface that exposes PostgreSQL-specific features such as LISTEN / NOTIFY and COPY. It also includes an adapter for the standard database/sql interface.
-
Sqlx: Sqlx is a library for Go that provides extensions to the standard database/sql package. It aims to simplify working with SQL databases in Go by offering additional features and utilities. Sqlx includes functions for working with query results, struct scanning, named parameters, and more. It enhances the productivity of Go developers when interacting with SQL databases like PostgreSQL by reducing boilerplate code and providing a more intuitive API.
-
Clone the repository:
git clone https://github.com/agusheryanto182/go-inventory-management.git
-
Go to folder go-inventory-management
cd go-inventory-management
-
Set up env, copy the code and then paste it in your terminal
-
Create a new database
-
Copy this and paste it in terminal for migrate database
make migrate-dev
-
go run .
-
Postman
https://documenter.getpostman.com/view/32137512/2sA3JNafN6
-
Database
https://dbdiagram.io/d/EniQilo-Stroe-66388de847ef755ec6ec15d1