Help us shape the future of Go! Take the 2026 Go Developer Survey

go-todo-app

command module
v0.0.0-...-3cf2cb3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2018 License: MIT Imports: 2 Imported by: 0

README

Simple Go Todo REST APP

RESTful API for simple todo application written in Go.

Project structure

├── app
│   ├── app.go
│   ├── handlers     
│   │   ├── common.go
│   │   └── tasks.go
│   └── models
│       ├── sql
│       │   └── init.sql
│       ├── db.gp
│       └── todo.go
├── config
│   └── config.go
└── main.go

Instalation

Docker Compose
docker-compose up

Server should be running on localhost:8000, with hot reloading on.

Locally

Download this project

go get github.com/mjelonek92/go-todo-app
cd $GOPATH/src/github.com/mjelonek92/go-todo-app

Install requirements using glide

glide install

Create user and database

psql -c "CREATE USER tododb WITH PASSWORD 'tododb'"
psql -c "ALTER USER tododb CREATEDB"
psql -c "CREATE DATABASE tododb WITH OWNER tododb"

Run SQL to create tables and relations.

psql -Utododb -dtododb -h127.0.0.1 -f app/models/sql/*

Build and run

go build
./go-todo-app

Server should be running on localhost:8000.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
app

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL