Cats Social is an application where cat owners can match their cats with each other.
-
Go: Go (or Golang) is the programming language that can develop an API with high performance and scalable.
-
Gorilla Mux: Gorilla Mux is a popular HTTP router for Go. It is used for routing incoming HTTP requests to the appropriate handler functions.
-
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.
-
Clone the repository:
git clone https://github.com/agusheryanto182/go-cats-social.git
-
Go to folder go-cats-social
cd go-cats-social
-
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
migrate -database "postgres://username:password@host:port/dbname?sslmode=disable" -path db/migrations up
-
go run .
-
Postman
https://documenter.getpostman.com/view/32137512/2sA3JFCQWq
-
Database
https://dbdiagram.io/d/cats-social-662e1e645b24a634d0fd02c6