Build a TodoList with Go Design and implement a backend RESTful service in golang with CRUD

Overview

May we ask Igor to do a little project in leu of sample code? If there is a hire, the hours spent should be invoiced, so please keep track of that. The project is:

"Build a TodoList with Go (Golang) Design and implement a backend RESTful service in golang with CRUD functionality that sends data to frontend clients.

Start by setting up an initial golang project using go modules. Decide and use a web framework (Gin, Echo, etc). Design a small DB schema for your todo list objects in any db of your preference. Organize your application's routes to support the CRUD paradigm. Use any ORM of your liking to connect and execute queries against the chosen DB. Dockerize your application. DB can also be a docker container. Docker compose is also an option."

The idea is to not spend more than a few hours. You do not need to get too fancy with the capabilities of a todo list; keep that part simple. There is no single "right" way to do this and one need not spend time looking for it. What is important, is to do an implementation and be able to articulate the reasoning behind the choices made.

TODO:

  1. Create id for todo not good idea. Maybe will be good idea:composite primary key postgres
  2. Create integration tests (Test routes)
  3. Add expired field for todo
  4. Init db in docker-compose ??? Is it need?
    1. How to deploy
  5. If obj will be too big we can use https://github.com/jmoiron/sqlx
  6. Rework Makefile (I should know CI/CD tool)
  7. Swagger?
  8. Jaeger?
You might also like...
Blog - Exploring Domain Driven Design In Go

Exploring Domain Driven Design In Go

Gorilla is a REST API template for efficient personal development, implemented based on the CleanArchitecture design philosophy.
Gorilla is a REST API template for efficient personal development, implemented based on the CleanArchitecture design philosophy.

The Gorilla Template is a REST API template for efficient personal development, implemented based on the CleanArchitecture design philosophy.

A RESTful API written in Golang to store and retrieve ticket information.

Tickets-API A RESTful API written in Golang to store and retrieve ticket information. This is a RESTful API built on top of the gin-gonic/gin package

Golang Gin Framework CRUD RestAPI with MySQL for music records.

web-service-gin Golang Gin Framework CRUD RestAPI with MySQL for music records. Installation This application runs on Go version 1.18.1. You can insta

Simple vanilla Go CRUD application with mongoDB database with its mflix dataset that I use for my thesis about benchmarking REST API and GraphQL.

Go GraphQL Simple vanilla Go CRUD application with mongoDB database with its mflix dataset that I use for my thesis about benchmarking REST API and Gr

It is a clone of the CRUD operations on Instagram which can create, get, create posts and get the post along with pagination
It is a clone of the CRUD operations on Instagram which can create, get, create posts and get the post along with pagination

Instagram-API-Clone It is a basic version of a RESTful API based on Instagram where we can create user, get the users, create post and get post and ge

A simple CRUD todo list application that is powered by Docker and Go

A simple CRUD todo list application that is powered by Docker and Go. Docker compose will run two containers todolist and mysql.

A simple RESTful server with golang

A simple RESTful server Setup local development environment cp develop.env .env docker-compose up -d docker-compose exec mysql mysql -u root --passwor

Create a demo RESTful application using Golang

Instructions The goal of this exercise is to create a demo RESTful application using Golang. The Task In this task, we are building backend of an appl

Owner
Igor
Igor
Demo application to implement a REST api backend service for an android app using the Go aah framework.

aah-recycleview-backend This tutorial is based on the aah framework to implement a REST API form of CRUD application services, taking "IN-MEMORY" stor

vulcangz 0 Jan 28, 2022
Api-go-gin-viper - Simple representaion on how to implement CRUD functionality in API using Go programming language

Simple API implementaion in Go To Get Started Clone repo Run the command to clon

Vsevolod Drobyshev 1 Feb 18, 2022
A simple todolist application written in Go

Go Todo Introduction A simple todolist application written in Go Requirements MySQL installed Go installed Installation Clone this repo git clone http

null 0 Nov 24, 2021
A ToDoList Demo based on Vue+Gin+Gorm+mysql

bubble清单 一个基于gin+gorm开发的练手小项目,通过该项目可初识go web开发该有的姿势。 前端页面基于vue和ElementUI开发,对前端不熟悉的童鞋可直接下载templates和static文件夹下的内容使用。 使用指南 下载 [email protected]:mao888/GoWe

胡超 6 Mar 16, 2022
Go-gin-mongo-api - A backend RESTful API built using golang, gin and mongoDB

go-gin-mongo-API This is a RESTful backend API which is developed using the gola

Humbe Jeffrey 6 Jul 19, 2022
Implement a REST API to drive a UI for service management

An implementation an API of the specification the drive a UI for engaging with services of an organization.

Gabriel Farrell 0 Nov 3, 2021
A CRUD Phone Book app by REST-API, Golang and PostgreSQL

in this repository, I've created a CRUD Phone Book app by REST-API, Golang and PostgreSQL. in this app, you can: 1-Create a new contact 2-See all contacts 3-Search among the contacts 4-Delete a contact by it's name 5-Delete a contact by it's number 6-Delete all contacts

Hamid Hosseinzadeh 8 Oct 8, 2022
This codebase was created to demonstrate a fully fledged fullstack application built with Golang/Echo including CRUD operations, authentication, routing, pagination, and more.

This codebase was created to demonstrate a fully fledged fullstack application built with Golang/Echo including CRUD operations, authentication, routing, pagination, and more.

Nayef Haidir 3 Jan 6, 2023
GinGoExample - Implement rest api using gin and go and mongodb

GinGoExample Implement rest api using gin and go and mongodb Optimizations using Singlton pattern to avoid repetetive commiunication with mongodb . Fe

Mehdi 0 Mar 25, 2022
基于go-kratos +Ant Design Pro的前后端分离微服务管理系统后端模块

项目前端是基于Ant Design Pro来创建的,后端是基于go-kratos来创建的一个前后端分离的管理系统

null 50 Nov 24, 2022