Skip to content

Simple todo REST API application written in Golang

Notifications You must be signed in to change notification settings

VladimirStepanov/todo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

Simple REST API TODO application written using Clean Architecture principles

List of used libraries:

Startup configuration [file .env in root]

#for confirm registration

EMAIL=confirmemail@gmail.com
EMAIL_PASSWORD=email_password

DOMAIN=site_domain

APP_ADDR=bind_addr
APP_PORT=bind_port

#db addr for migration
MIGRATE_DB_HOST=migrate_db_addr

#database
POSTGRES_HOST=todo_db
POSTGRES_PORT=5433
POSTGRES_USER=admin
POSTGRES_PASSWORD=admin
POSTGRES_DB=todo

#jwt keys
JWT_ACCESS_KEY=access_key
JWT_REFRESH_KEY=refresh_key

#redis
REDIS_HOST=tokendb
REDIS_PORT=6380

#other
MAX_LOGGED_IN=6

Run

make rebuild

Migrations

make migrateup
make migratedown

Tests

make test #unit testing
make test.integrations #integration testing

Documentation

Install swag

make swag #generate docs

See /swagger/index.html path.