Skip to content

gospodinzerkalo/todo_app_golang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TODO app

Using

authorization

[POST] /signup

{
  "email":"your_email",
  "password": "your_password",
  "first_name": "your_name",
  "last_name":"your_surname"
}

[POST] - /signin

{
  "email": "your_email",
  "password": "your_password"
}

todo app

[GET] /api/todo - get all tasks

[GET] /api/todo/:id - get task by id

[POST] /api/todo - create task

{
  "title": "title",
  "description": "give description",
  "deadline": "set deadline",
}

[PUT] /api/todo/:id - update task by id

[POST] /api/todo/:id/execute - mark execute

[DELETE] /api/todo/:id - delete task by id


Dependencies

fasthttp
fasthttprouter
cli
go-pg
orm
godotenv

Installation (linux)

Clone the project

$ git clone https://github.com/gospodinzerkalo/todo_app_golang

With Docker

docker-compose build
docker-compose up

with Makefile

Create database

$ psql -c "CREATE DATABASE todo_app"
or
$ make createDB

Build and run

$ make build
$ make run