RESTful API Web server for simple blog using Echo framework, Gorm, Redis, and Postgresql.
-
Clone the project:
git clone https://github.com/ridwanfathin/blog-server
-
Open the directory:
cd echo-server
- Define
GOPATH
:
export GOPATH=[your project path]
- Change environment settings
Change host
, user
, password
, dbname
file in src/postgres/pq.go
- Build binaries:
make build
-
Run the server:
- Linux & Mac
make run
- Windows
make run