Skip to content

shatrovich/atnr.pro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deps

  1. Postgres
  2. Go

Launch

    $ docker run --name postgres -p 5432:5432 -e POSTGRES_INITDB_ARGS="--data-checksums" -v $(PWD)/data/db:/var/lib/postgresql/data -d postgres:11

    $ docker exec -it postgres bash

    $ psql -U postgres

    $ create table tasks (id INT GENERATED ALWAYS AS IDENTITY primary key, created_at TIMESTAMP DEFAULT NOW() NOT NULL, rounds int not null default 1);

    $ create table tasks_hashes (id int generated always as identity primary key, task_id int references tasks(id), hash varchar not null, created_at timestamp default now() not null, round int not null);
    $ ./main.go #this command run app on 3001 port (as default)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published