In order to set up this app, run the following commands:
git clone git@github.com:qosimmax/storage-api.gitcp .env.example .env- Set correct env vars in .env
make build
In order to run this app, run the following commands:
make run
create table server
(
id varchar(36) not null
primary key,
name varchar(100) not null,
address varchar(50) not null
);
create unique index server_address_uindex
on server (address)
create table file_info
(
id varchar(36) not null
primary key,
name text,
size bigint,
created_at timestamp
)create table server_files
(
file_id varchar(36),
server_id varchar(36),
part_size bigint,
"order" integer,
created_at timestamp
)