access-in-go

command module
v0.0.0-...-71ddb0c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2024 License: MIT Imports: 7 Imported by: 0

README

How

Commands to initialize ran:
  • go mod init github.com/rajeshn95/access-in-go
Install the fiber

express like server in go lang

  • go get -u github.com/gofiber/fiber/v3
  • go get github.com/gofiber/jwt/v2
  • go get github.com/arsmn/fiber-swagger/v2
  • go get github.com/golang-jwt/jwt
  • go get github.com/go-playground/validator/v10
  • go get github.com/joho/godotenv/autoload
makefile

Make file is used to store all the commands and commands stored can be ran in CLI wit prefix make:

  • make command
database
  • Install the migrator: brew install golang-migrate

  • Install database driver and sql:

    • go get github.com/jmoiron/sqlx
    • go get github.com/jackc/pgx/v4/stdlib
  • ./platform/database folder with database configuration (PostgreSQL)

  • ./platform/database/migrations folder with migration files (used with golang-migrate/migrate tool)

  • Migration commands:

    • make migrate.create name=create_books_table
    • make migrate.up
    • make migrate.down
Server

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
app
Package docs GENERATED BY SWAG; DO NOT EDIT This file was generated by swaggo/swag
Package docs GENERATED BY SWAG; DO NOT EDIT This file was generated by swaggo/swag
pkg
platform

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL