webapp

command module
v0.0.0-...-a73014c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

README

Sample App / How to use the example

CLI

The sample app here is a simple CRUD app which exposes a people model (refer examples/gin/models/person.go). It has simple operations for getting the list of people, adding, modifying and deleting these

  • First run the application: go run main.go (Should start at port :9090)
  • Post some data to the app:
      curl -i -X POST http://localhost:9090/people -d '{ "FirstName": "Sachin", "LastName": "Tendulkar"}'
      curl  http://localhost:9090/people/ 
    

Documentation

Postman collection is available in docs/postman_collection.json

Docker

docker build -t crud-webapp -f Dockerfile .
docker run -d -p 9090:9090 crud-webapp

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package config will manage all application level configurations config file will be taken based on the application environment all the configuration available in governor file will be overwritten this will be immutable as it always provides the value of the struct
Package config will manage all application level configurations config file will be taken based on the application environment all the configuration available in governor file will be overwritten this will be immutable as it always provides the value of the struct
Package logger provides initializes logger and external logging service hooks
Package logger provides initializes logger and external logging service hooks
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL