GHAT(D)'s Demo API Detail
- Endpoints [WIP]
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)
-
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"
-
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.
-
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.