├── .env ├── .env.example ├── .gitignore ├── DockerFile ├── Makefile ├── README.md ├── cmd ├── api │ └── api.go ├── main.go └── migrate │ ├── main.go │ └── migrations │ ├── 20240922135358_add-user-table.down.sql │ ├── 20240922135358_add-user-table.up.sql │ ├── 20240922141343_add-product-table.down.sql │ ├── 20240922141343_add-product-table.up.sql │ ├── 20240922141434_add-orders-table.down.sql │ ├── 20240922141434_add-orders-table.up.sql │ ├── 20240922141508_add-order-items-table.down.sql │ └── 20240922141508_add-order-items-table.up.sql ├── config └── env.go ├── db └── db.go ├── docker-compose.yml ├── go.mod ├── go.sum ├── service ├── auth │ ├── jwt.go │ ├── jwt_test.go │ ├── password.go │ └── password_test.go ├── cart │ ├── routes.go │ ├── routes_test.go │ └── service.go ├── order │ └── store.go ├── product │ ├── routes.go │ ├── routes_test.go │ └── store.go └── user │ ├── routes.go │ ├── routes_test.go │ └── store.go ├── types └── types.go └── utils └── utils.go /.env: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/up-to-sky/Golang-API-Boilerplate/HEAD/.env -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/up-to-sky/Golang-API-Boilerplate/HEAD/.env.example -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/up-to-sky/Golang-API-Boilerplate/HEAD/.gitignore -------------------------------------------------------------------------------- /DockerFile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/up-to-sky/Golang-API-Boilerplate/HEAD/DockerFile -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/up-to-sky/Golang-API-Boilerplate/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/up-to-sky/Golang-API-Boilerplate/HEAD/README.md -------------------------------------------------------------------------------- /cmd/api/api.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/up-to-sky/Golang-API-Boilerplate/HEAD/cmd/api/api.go -------------------------------------------------------------------------------- /cmd/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/up-to-sky/Golang-API-Boilerplate/HEAD/cmd/main.go -------------------------------------------------------------------------------- /cmd/migrate/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/up-to-sky/Golang-API-Boilerplate/HEAD/cmd/migrate/main.go -------------------------------------------------------------------------------- /cmd/migrate/migrations/20240922135358_add-user-table.down.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS users; -------------------------------------------------------------------------------- /cmd/migrate/migrations/20240922135358_add-user-table.up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/up-to-sky/Golang-API-Boilerplate/HEAD/cmd/migrate/migrations/20240922135358_add-user-table.up.sql -------------------------------------------------------------------------------- /cmd/migrate/migrations/20240922141343_add-product-table.down.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS products; -------------------------------------------------------------------------------- /cmd/migrate/migrations/20240922141343_add-product-table.up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/up-to-sky/Golang-API-Boilerplate/HEAD/cmd/migrate/migrations/20240922141343_add-product-table.up.sql -------------------------------------------------------------------------------- /cmd/migrate/migrations/20240922141434_add-orders-table.down.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS orders; -------------------------------------------------------------------------------- /cmd/migrate/migrations/20240922141434_add-orders-table.up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/up-to-sky/Golang-API-Boilerplate/HEAD/cmd/migrate/migrations/20240922141434_add-orders-table.up.sql -------------------------------------------------------------------------------- /cmd/migrate/migrations/20240922141508_add-order-items-table.down.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS order_items; -------------------------------------------------------------------------------- /cmd/migrate/migrations/20240922141508_add-order-items-table.up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/up-to-sky/Golang-API-Boilerplate/HEAD/cmd/migrate/migrations/20240922141508_add-order-items-table.up.sql -------------------------------------------------------------------------------- /config/env.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/up-to-sky/Golang-API-Boilerplate/HEAD/config/env.go -------------------------------------------------------------------------------- /db/db.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/up-to-sky/Golang-API-Boilerplate/HEAD/db/db.go -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/up-to-sky/Golang-API-Boilerplate/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/up-to-sky/Golang-API-Boilerplate/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/up-to-sky/Golang-API-Boilerplate/HEAD/go.sum -------------------------------------------------------------------------------- /service/auth/jwt.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/up-to-sky/Golang-API-Boilerplate/HEAD/service/auth/jwt.go -------------------------------------------------------------------------------- /service/auth/jwt_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/up-to-sky/Golang-API-Boilerplate/HEAD/service/auth/jwt_test.go -------------------------------------------------------------------------------- /service/auth/password.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/up-to-sky/Golang-API-Boilerplate/HEAD/service/auth/password.go -------------------------------------------------------------------------------- /service/auth/password_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/up-to-sky/Golang-API-Boilerplate/HEAD/service/auth/password_test.go -------------------------------------------------------------------------------- /service/cart/routes.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/up-to-sky/Golang-API-Boilerplate/HEAD/service/cart/routes.go -------------------------------------------------------------------------------- /service/cart/routes_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/up-to-sky/Golang-API-Boilerplate/HEAD/service/cart/routes_test.go -------------------------------------------------------------------------------- /service/cart/service.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/up-to-sky/Golang-API-Boilerplate/HEAD/service/cart/service.go -------------------------------------------------------------------------------- /service/order/store.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/up-to-sky/Golang-API-Boilerplate/HEAD/service/order/store.go -------------------------------------------------------------------------------- /service/product/routes.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/up-to-sky/Golang-API-Boilerplate/HEAD/service/product/routes.go -------------------------------------------------------------------------------- /service/product/routes_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/up-to-sky/Golang-API-Boilerplate/HEAD/service/product/routes_test.go -------------------------------------------------------------------------------- /service/product/store.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/up-to-sky/Golang-API-Boilerplate/HEAD/service/product/store.go -------------------------------------------------------------------------------- /service/user/routes.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/up-to-sky/Golang-API-Boilerplate/HEAD/service/user/routes.go -------------------------------------------------------------------------------- /service/user/routes_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/up-to-sky/Golang-API-Boilerplate/HEAD/service/user/routes_test.go -------------------------------------------------------------------------------- /service/user/store.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/up-to-sky/Golang-API-Boilerplate/HEAD/service/user/store.go -------------------------------------------------------------------------------- /types/types.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/up-to-sky/Golang-API-Boilerplate/HEAD/types/types.go -------------------------------------------------------------------------------- /utils/utils.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/up-to-sky/Golang-API-Boilerplate/HEAD/utils/utils.go --------------------------------------------------------------------------------