This is a mini social network created with golang, gorilla/mux and gorm. I built this to get more familiar with the Go language. I also decided to use go template just to get familiar with them. I'll probably go with rest apis for future projects. I intend to do some refactoring later on, but the functionalities are currently working. Inspiration gotten from yTakkar's .
Go - from v1.2
PostgreSQL - from v10
-
Before setup, you must have PostgreSQL on your machine. Then clone this repository
-
cd into the project directory
cd go-social-network
-
Set environment variables
- A sample is presented in the repository.
cp .env.example .env
-
Run application
go run main.go