Gorm - Many To Many

In this project, relational database operation was performed with gorm.

Script

An artist can have more than one song or more than one singer can sing a song.

install

Postman and postgres need to be installed.

  https://www.postman.com/downloads/
 https://www.postgresql.org/download/windows/

Run it on your computer

Clone the project

  git clone https://github.com/nasuhyc/golang-gorm-relationships.git

Go to the project directory

  cd core

Install required packages

  go mod tidy

Run the server

  go run main.go or air