Simple banking project. CRUD transaction between two users with different accounts.
- Create container folder
- Create
main.go
file - Initialize modules:
go mod init github.com/{username}/{projectdir}
- Install packages:
- go get github.com/badoux/checkmail
- go get github.com/jinzhu/gorm
- go get golang.org/x/crypto/bcrypt
- go get github.com/dgrijalva/jwt-go
- go get github.com/gorilla/mux
- go get github.com/jinzhu/gorm/dialects/mysql" //If using mysql
- go get github.com/jinzhu/gorm/dialects/postgres //If using postgres
- go get github.com/joho/godotenv
- go get gopkg.in/go-playground/assert.v1
- Run script (project in this case):
go run main.go
. main.go can be whatever file you want. - Add module requirements and sums:
go mod tidy
.