Skip to content

Latest commit

 

History

History
37 lines (31 loc) · 1.31 KB

README.md

File metadata and controls

37 lines (31 loc) · 1.31 KB

snippetbox

This is a web application to save snippets, based on the book let's go by alex edwards. This application uses Golang and it's powerful standard library to server a complete web applicaiton.

Please checkout the Live Demo of the application.

Requirements

Libraries

  • github.com/golangcollege/sessions v1.2.0
  • github.com/justinas/alice v1.2.0
  • github.com/justinas/nosurf v1.1.0

Running

You can pull the code run it in developmnet mode:

  cd snippetbox
  go run cmd/web/!(*_test.go)              //to run without tests
  go test -v cmd/web/*   //to run the test
  

Building

You can pull the code and create a binary file to run the application anywhere:

  cd snippetbox
  go build -o snippetbox cmd/web/*             //to run without tests
  

To Do

  • Creating an API endpoint which returns a JSON representation of a snippet
  • Adding functionality to confirm a user’s email address on signup
  • Adding functionality for a user to reset their password
  • Creating a command line application under cmd/cli to carry out database admin tasks
  • Snippets expiring after specified time
  • Saving logs on a file