Skip to content

Latest commit

 

History

History
61 lines (39 loc) · 607 Bytes

Installation.md

File metadata and controls

61 lines (39 loc) · 607 Bytes

Installation

Installing dependencies

go mod tidy

or :

go mod download

or :

go run main.go

Generate JWT Secret

open a terminal and enter :

openssl rand -base64 24

then copy the generated string and put it in the .env file :

JWT_SECRET=dZvG+ecNWSRb6WNAX6l/sC2gh2qzlLl3

Running development server

go run main.go

Testing

go test ./tests/...

Building

autobuild :

go build -o myapp main.go

build for linux :

GOOS=linux GOARCH=amd64 go build -o myapp-linux main.go