Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ichtrojan/go-todo

A simple todo list application in Golang
https://github.com/ichtrojan/go-todo

golang mysql todo todolist

Last synced: 4 days ago
JSON representation

A simple todo list application in Golang

Awesome Lists containing this project

README

        

# Go Todo

![hero](https://res.cloudinary.com/ichtrojan/image/upload/v1574958373/Screenshot_2019-11-28_at_17.22.25_gyegdr.png)

## Introduction

A simple todolist application written in Go

## Requirements
* MySQL installed
* Go installed

## Installation

* Clone this repo

```bash
git clone https://github.com/ichtrojan/go-todo.git
```

* Change Directory

```bash
cd go-todo
```

* Initiate `.env` file

```bash
cp .env.example .env
```

* Modify `.env` file with your correct database credentials and desired Port

## Usage

To run this application, execute:

```bash
go run main.go
```

You should be able to access this application at `http://127.0.0.1:4040`

>**NOTE**

>If you modified the port in the `.env` file, you should access the application for the port you set

## Conclusion

This Project is an example to teach CRUD using the default `database/sql` package and how to serve html templates properly.

If you have anything to add to this, please send in a PR as it will no longer be actively maintained by [me](https://github.com/ichtrojan).