Simple CRUD APIS for Books using POSTGRES SQL and Gorilla Mux
- Clone the repository
go get github.com/subosito/gotenvgo get github.com/gorilla/muxgo get github.com/lib/pq
- Create account on Elephant Sql.
- Create db Instance on above url.
- Copy the
database urlwhich will be in the formatpostgres://user:password@server:PORT/user. - Create
.envfile locally in the root directory. - Add
SQL_URL=database urlin the file.
go run main.go- Open Postman
- Import
book-list.postman_collection.json - Enjoy