repositorypackage
0.0.0-20230215061046-329d7f53c67f
Repository: https://github.com/anas2258/go_api.git
Documentation: pkg.go.dev
# README
CRUD API with Golang
GOlang Building Restful API with postgre Documentation: *Installation and "hello world"
- Download and install GO for window/mac/linux from "https://go.dev/dl/".
- Open terminal and type command "go version" to check if its installed.
- (For vs code)
- Search "GO" in extensions and install GO in VS Code.
- Click ctrl+shift+p and search "Go:Install current package". Check all in list and press install .
- Create folder and file "hello.go" and paste this boilerplate code
" package main import "fmt"
func main() { fmt.Println("Hello, World!") } "
- Go to the root folder of file and open terminal and give command " go run ". *Download & Install PosgreSql
- https://www.postgresql.org/download/ Download from here.
- https://www.tutorialsteacher.com/postgresql/install-postgresql guide to install & create database.
*Build API with postgre https://www.section.io/engineering-education/build-a-rest-api-application-using-golang-and-postgresql-database/ Following this tutorial to build API