This is a simple Golang Database that performs crud operations on a postgres Databse.
You're sections headers will be used to reference location of destination.
You can use this to create CRUD operations on your postgres Database
- Golang
- GORM
- GIN
- CompilerDaemon
- GotdotEnv
When you clone the project, you need to change the credentioals to match your database. I have a .env file that contains my credentials and it's not pushed into github so if you want to run this locally make sure you create one with those values in order for things work properly.
Here are the values you could use
This will run the project on port 1000 on your localhost. Whatever the dbname, you decide, you have to create a postgres database with thesame name. PORT=1000 DB_URL="host=localhost user=postgres password=12345 dbname=actorsgo port=5432 sslmode=disable"
After successful cloning this repository, you may need to install the following
- Golang
- GORM
- go get -u gorm.io/gorm go get -u gorm.io/driver/postgres
- GIN
- go get -u github.com/gin-gonic/gin
- CompilerDaemon
- go get github.com/githubnemo/CompileDaemon go install github.com/githubnemo/CompileDaemon
- GotdotEnv
- go get github.com/joho/godotenv
- Twitter - @richmondelaigwu
- Website - Richmond Elaigwu
