Skip to content

chunghha/go-playground

Repository files navigation

go-playground

This project was generated using Nx with these plugins.

yarn create nx-workspace go-playground --preset=empty --cli=nx --nx-cloud false

yarn add @nx-go/nx-go --dev
nx g @nx-go/nx-go:app api

yarn add @nxrocks/nx-flutter --dev
nx g @nxrocks/nx-flutter:create app

Run

  • Install gow before running api in watch mode.

"api" is based on fiber and runs on the port 3000 by the nx serve api

nx serve api
nx run app:run 
api app
serve_api run_app

go_playground

Swagger

  • Install task and swag to generate a swagger.
task sswagger_gen 

swagger

Endpoints

ht :3000/
ht :3000/api/is_healthy
ht :3000/api/v1/states