Skip to content

pythoninthegrasses/twu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

twu

twu consumes the OpenWeatherMap API to provide weather information for a given city.

It's built with Go and uses HTMX to make the application interactive without writing any JavaScript.

Quickstart

  • To run the application, execute the following commands:

    # run the application
    go run main.go
    
    # quit the application
    Ctrl + C
  • Once it's running, you can access the application at http://localhost:8080.

  • To build the application, execute the following commands:

    # build the application
    go build -o ./build/twu .
  • To run the built application, execute the following commands:

    # run the application
    ./build/twu
  • To run the tests, execute the following commands:

    # run the tests
    go test ./...

Setup

  1. Install Go.
  2. Install Visual Studio Code.
  3. Install Go extension.
  4. Clone and open this repository.
  5. F1 -> Go: Install/Update Tools -> (select all) -> OK.

Build

Terminal

  • make: execute the build pipeline.
  • make help: print help for the Make targets.

Visual Studio Code

F1Tasks: Run Build Task (Ctrl+Shift+B or ⇧⌘B) to execute the build pipeline.

Release

The release workflow is triggered each time a tag with v prefix is pushed.

CAUTION: Make sure to understand the consequences before you bump the major version. More info: Go Wiki, Go Blog.

Maintenance

Notable files:

Contributing

Feel free to create an issue or propose a pull request.

Follow the Code of Conduct.

About

Toy app to get better at Go and dabble in HTMX

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published