github.com/micro/go-micro/examples@v0.0.0-20210105173217-bf4ab679e18b/form/README.md (about)

     1  # Form
     2  
     3  This rudimentary example demonstrates how to access a form and multipart form when writing API services
     4  
     5  ## Contents
     6  
     7  - web - is the web front end with the form
     8  - api - is the api service
     9  
    10  ## Usage
    11  
    12  Run the micro api
    13  
    14  ```
    15  micro api --handler=api
    16  ```
    17  
    18  Run the micro web
    19  
    20  ```
    21  micro web
    22  ```
    23  
    24  Run the api service
    25  
    26  ``` 
    27  go run api/main.go
    28  ```
    29  
    30  Run the web service
    31  
    32  ```
    33  go run web/main.go
    34  ```
    35  
    36  Browse to localhost:8082/form