How to create Rest APIs using postgres with golang
Thisis a book keeping project
A simple project for beginners who want to learn to create REST APIs golang with postgress.
- Add, update, delete users.
- Add, update, delete books.
Installation
If using Linux/WSL:
sudo apt update
sudo apt install postgresql postgresql-contrib
If using macOS:
brew tap homebrew/services
brew install postgresql
initdb /user/local/var/postgres
To start the server
go run main.go
Replace the .env with your own values.
Contributing
Pull requests are always welcome! Feel free to open a new GitHub issue for any changes that can be made.
Author
Cosmas Mbuvi | https://crunchgarage.com