This project demonstrates the simple way to use Go and HTXM and integrate with the PokeAPI to retrieve information about Pokémon, including their height, weight, and other attributes.
Before running the project, make sure you have the following installed:
- Go (version 1.16 or higher)
- Fiber (a web framework for Go)
- Any necessary dependencies (specified in go.mod)
- Clone the repository to your local machine:
https://github.com/vnurhaqiqi/go-htmx-demo
- Navigate to the project directory:
cd go-htmx
- Install dependencies:
go mod download
- Start the server:
go run .
- Open a web browser and go to http://yourhost:3000.
- Use the search functionality to find information about Pokémon by name.
- Search for Pokémon by name.
- Retrieve information such as height, weight, and other attributes from the PokeAPI.
- Simple and intuitive user interface.
- Go - The programming language used
- Fiber - Web framework for Go
- Bootstrapt & HTMX
Contributions are welcome! Please feel free to submit pull requests or open issues if you find any bugs or have suggestions for improvements.
Thanks to the creators of the PokeAPI for providing the data used in this project.