modulepackage
0.0.0-20221229081153-c3dbce25de3a
Repository: https://github.com/kelvins19/article_api.git
Documentation: pkg.go.dev
# README
README
Tech Stack
- Go V1.19
- GorillaMux Framework
- PostgreSQL
- golang-migrate for Database Migrations
How to migrate
- Install golang-migrate[https://dev.to/techschoolguru/how-to-write-run-database-migration-in-golang-5h6g]
- Run migration
migrate -path db/migration -database "postgresql://kelvins19:123456@localhost:5432/postgres?sslmode=disable" -verbose up
How to setup the application
- Go to the project directory
- Run
go build
- Run
go mod tidy
- Run
go run main.go
to start the application
How to run the unit tests
- Make sure the server has already been started
- If not, run
go run main.go
- Go to test directory, run
go test
How to build using docker
NOT WORKING YET