Skip to content

chandan637/example-golang-todo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

example-golang-todo

Simple Todo List web app.

The backend is written in Go using the Standard Library, only.

The frontend was copy and pasted from the TodoMVC project (backbone).

Pull requests are welcomed and encouraged!

Getting started

Steps for getting up and running,

  1. Install go

    See https://golang.org/doc/install

  2. Clone the repo

    git clone https://github.com/westonplatter/example-golang-todo.git
    
  3. Install project dependencies

    cd example-golang-todo
    go get
    
  4. Setup a database

    The project expects a MySQL sever to be accessible via,

    host      = localhost
    username  = root
    password  = (EMPTY)

    Create a database called golang_todo_dev,

    create database golang_todo_dev;

    Create a table called Todo,

    CREATE TABLE `Todo` (
      `Id`          int(11) NOT NULL,
      `Title`       varchar(255) DEFAULT NULL,
      `Category`    varchar(255) DEFAULT NULL,
      `State`       varchar(255) DEFAULT NULL,
      PRIMARY KEY (`Id`)
    ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  5. Run the web app

    go run server.go

    Visit localhost:3000

About

Golang API backend powering a TodoList app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 37.3%
  • JavaScript 26.4%
  • Go 24.7%
  • HTML 11.6%