Skip to content

qosimmax/storage-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

storage-api

Description

Storage API is a file storage service for storing and accessing data.

Requirements

Setup

In order to set up this app, run the following commands:

  1. git clone git@github.com:qosimmax/storage-api.git
  2. cp .env.example .env
  3. Set correct env vars in .env
  4. make build

Run

In order to run this app, run the following commands:

  1. make run

DB tables

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
)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors