Skip to content

leonwigley/dts-developer-challenge

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚖️ HMCTS DTS Developer Challenge

The most robust to-do list, the world has ever seen.

🚀 Usage

Before you start, make sure you have the following installed:

Run the following commands to start this project (Recommended):

$ git clone https://github.com/leonwigley/dts-developer-challenge.git
$ cd dts-developer-challenge/
$ go mod tidy
$ air

OR run the binary included within bin/ (Optional: may not work for all systems!)

$ bin/./server

Go to http://localhost:3000/ in your browser.

🛠️ Tech Stack

  • Server: Go
  • Database: SQLite
  • Front-end: HTMX

Go gopher mascotSQLite LogoHTMX Logo

✅ Challenge Criteria

  • API endpoint (JSON): http://localhost:3000/api/tasks
  • Stores tasks in an SQLite database
  • Create a task with the following properties:
    • Title
    • Description
    • Status
    • Due date/time (default format)
  • Retrieve a task by ID: http://localhost:3000/api/tasks/:id
  • Update task status (e.g. mark as completed): press Complete, or use: curl -X PUT http://localhost:3000/api/tasks/:id -d 'status=completed'
  • Delete a task by id: press Delete, or use: curl -X DELETE http://localhost:3000/api/tasks/:id
  • Includes validation and error handling
  • Includes unit tests, use: go test -v

Thank you for considering my application 😊

About

An over-engineered to-do list in Go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 78.6%
  • HTML 14.2%
  • CSS 7.2%