Skip to content

unbrokenguy/sys-arch-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Study Project for system architecture

Service responsible for uploading and downloading data.

Build Status

Installation

Install Python >= 3.7

https://www.python.org/downloads/

Clone this repository or download zip archive and unzip it

git clone https://github.com/unbrokenguy/sys-arch-server.git

Install poetry

pip install poetry

Install the project dependencies

poetry install 

Setup

Make sure you have installed and started these servers in this order

  1. Configuration Server
  2. Authorization Server

Start current server

Spawn a shell within the virtual environment

poetry shell

Add environments

Start server

cd src && python manage.py runserver

Server will be available at this url http://localhost:8000/ or http://127.0.0.1:8000/

Usage

Only authorized users can make requests.

  • POST /auth/sign_in/ - Redirect to Authorization Server.
  • POST /auth/sign_up/ - Redirect to Authorization Server.
  • POST /data/ - Upload data (strings or files).
  • GET /category/ - List of categories.
  • GET /data/{pk}/ - Download data.
  • GET /category/{pk}/ - Retrieve category.

Related repositories

  1. Configuration Server
  2. Authorization Server
  3. Command line client
  4. Front end

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages