Skip to content

Introvesia/go-chat-api

Repository files navigation

go-chat-api

Chat API server with Golang for Introvesia Workspace

Prerequisites

  • Golang installed

Preparation for migration tools

Install migration tools:

brew install golang-migrate

Create a new migration:

migrate create -ext sql -dir migrations -seq <name>

Migrate database

  1. Uncomment this code at main.go
    libs.AutoMigrate()
  2. Run the server

Check the module is uninstalled

go list -m all | grep <module>

Uninstall the module

go mod tidy

Hot reload

Install air:

go install github.com/air-verse/air@latest

Add this code after edit profile use command nano ~/.bashrc:

export PATH=$PATH:$(go env GOPATH)/bin

Run main.go with this command:

air

About

Chat API with Golang for Introvesia Workspace

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •