Skip to content

KBiswas98/golang-stater

Repository files navigation

golang stater

How to setup the project

  1. Clone it.
  2. Get all of the library: go mod tidy
  3. .env.example -> .env

How to Code Step By Step

  1. Create a .env file import file in config/config.go
  2. Create a DB connect file in db/common.go
  3. Setup the SQLC 3a. create a migration file 3b. up the migration file 3c. write the query for the table 3d. generate the sqlc schema. 3e: then connect the generated sql with the database.
  4. Now write the service and handlers

Create a Migration File

migrate create -ext sql -dir db/migrations -seq create_users_table

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published