Skip to content

Go web app to keep track of your puppies! 🐶

License

Notifications You must be signed in to change notification settings

ISU-WebDevClub/puppy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

puppy

Golang web app to keep track of your puppies! 🐶

What you'll learn

  • A little bit of Go programming
  • Representing data using structs
  • Presenting the data in the browser using HTML templates
  • Basic input validation
  • Idiomatic ways to handle errors, make templates, etc. in Go

Getting started

You need to have Go installed: https://golang.org

Run the following command:

go run main.go

Then point your browser to http://localhost:8080/dog/Rex. You should see a simple page that has the dog's name at the top, followed by an edit link and then a description of the dog.

Now it's your turn

After exploring the code and understanding how it works (look at the commit log too), try adding a few features.

This killer dog log may be the next big thing, but perhaps it could first use some improvements like the ability to add a dog's photo.

Some other things to try:

  • Allow dogs to be deleted
  • Save the dog information to a SQLite database
  • Add logging so that we know what routes are being hit, the response time, etc.

License

MIT

Releases

No releases published

Packages

No packages published