Coder Social home page Coder Social logo

tsnippet's Introduction

tsnippet

Simple text snippet fullstack web-app written on Go

tsnippet

App created with help of and following along with ALEX EDWARDS (Github) book “Let's Go!” (2nd edition)—one of the greatest practical Go books I've read at the moment, which excellent implementation of the approach:

“learn by doing”

hugely helped me grasp the creation of Go web apps.

Frontend part implemented using go templates (html) and CSS.

Description of available functionality:

Method Pattern Handler Action
GET / home Display the home page
GET /snippet/view/:id snippetView Display a specific snippet
GET /snippet/create snippetCreate Display a HTML form for creating a new snippet
POST /snippet/create snippetCreatePost Create a new snippet
GET /static/ http.FileServer Serve a specific static file
GET /user/signup userSignup Display a HTML form for signing up a new user
POST /user/signup userSignupPost Create a new user
GET /user/login userLogin Display a HTML form for logging in a user
POST /user/login userLoginPost Authenticate and login the user
POST /user/logout userLogoutPost Logout the user
GET /about about Display about page
GET /account/view accountView Display current user account information
GET /account/password/update accountPasswordUpdate Display a HTML form for updating the password
POST /account/password/update accountPasswordUpdatePost Update password

Installation & Usage

$ git clone https://github.com/Twofold-One/tsnippet.git

$ go run ./cmd/web/ -dsn postgres://username:pass@localhost:5432/tsnippet

tsnippet's People

Contributors

twofold-one avatar

Stargazers

Roman avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.