GithubHelp home page GithubHelp logo

krakiun / example-golang-todo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from westonplatter/example-golang-todo

0.0 2.0 0.0 222 KB

Golang API backend powering a TodoList app

License: MIT License

HTML 11.61% Go 24.73% CSS 37.28% JavaScript 26.38%

example-golang-todo's Introduction

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 AUTO_INCREMENT,
      `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

example-golang-todo's People

Contributors

westonplatter avatar chandan637 avatar

Watchers

James Cloos avatar  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.