ghatd-detail-api-demo-endpoints

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

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 14 Imported by: 0

README ¶

GHATD

GHAT(D)'s Demo API Detail - Endpoints [WIP]

Apart of the GHAT(D) initiative

This repo is strongly linked to this GHAT(D) PR being merged

Use GHAT(D) Details to hit the floor running with your next Go-base full stack web application. This Detail is an example endpoint that comes loaded with the demo page our demo page api. Use this demo to Kick off your project if you want to get an understanding of how you can structure the api Detail of your application

🚥 Getting started

Details are independent applications by nature that can run within the GHAT(D) framework as well as individually. To run this api Detail locally, please:

  • Ensure you have the appropiate version of Go installed
  • Run the following command:
go run api.go

For the best experience developing your Detail, we recommend using hot reloading when developing by using:

reflex -r '\.(html|go)$' -s -- go run web.go

You will have to ensure you have reflex (click to go to installation steps) installed.

🪡 Putting together your web application and the ghat(d) framework (TBC)

  1. Create a GHAT(D) Web App.

    Use the GHATDCLI to create a new web app, specifying this demo api Detail.

    # create a new GHAT(D) Web App using this demo api Detail
    ghatdcli new -n "my-new-web-app" -m "github.com/some-org-or-personal/my-new-web-app" -w "https://github.com/ooaklee/ghatd-detail-api-demo-endpoints"
    
  2. Start developing.

    Navigate into your new web app's directory and start it up.

    cd my-new-web-app/
    go mod tidy
    go run cmd/main.go start-server
    

    For the best experience, we recommend using hot reloading when developing by using reflex -r '\.(html|go)$' -s -- go run main.go start-server. You will have to ensure you have reflex (click to go to installation steps) installed.

  3. Access the service's API and start editing your app code!

    Your site is now running at http://localhost:4000/api/v1/words!

License

This project is licensed under the MIT License.

Documentation ¶

The Go Gopher

There is no documentation for this package.

Directories ¶

Path Synopsis
external
testing

Jump to

Keyboard shortcuts

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