This is a repository for my assignments in "Scalable Web Service with Golang" course from Hacktiv8 × Kominfo.
Prints name, address, job, and reason to join course of the student with id passed in args.
- Open "Biodata" folder.
go run . <student id>
in Terminal. valid student id: 0-49
API server in Go for orders of items.
- Install postgresql if you haven't. Alternatively you can use other RDBMS, but you would need to replace gorm postgres driver with its respective gorm driver.
- Create a database with a name of "order-api"
- Open "OrderApi" folder.
go run .
in Terminal.
The Swagger specification defines a set of files required to describe such an API. These files can then be used by the Swagger-UI project to display the API and Swagger-Codegen to generate clients in various languages. Additional utilities can also take advantage of the resulting files, such as testing tools.
Swagger is available for this API server. To open swagger UI, open http://localhost:8080/swagger/index.html.
Serves a page to display water height and wind speed. Data generated pseudo-randomly.
- Open "WaterWind" folder
go run .
in Terminal- Open localhost:8080 in browser
A social media API to save and comment photos.
- Install postgresql if you haven't. Alternatively you can use other RDBMS, but you would need to replace gorm postgres driver with its respective gorm driver.
- Create a database with a name of "mygram"
- Open "MyGram" folder.
go run .
in Terminal.
Swagger is available for this API server. To open swagger UI, open http://localhost:8080/swagger/index.html. Request paths and bodies strictly follows kode.id materials.