Giter VIP home page Giter VIP logo

my_storage's Introduction

my_storage_CI

My_storage

This is a simple storage to keep your files. You can upload/download any data you want just in few seconds.

You can write path to file, file content or select file to upload. Click it to try.

Api endpoints

  1. my_storage/api/dir <- current file tree of your storage

    METHODS: GET

    Curl example: curl my_storage_ip/api/dir

  2. my_storage/api/upload <- click to download test_file.txt

    METHODS: GET

    ARGS:

    path='path/to/file' - file's path you want to download;

    raw='yes' - if you want to get the file as file not as a text;

    Curl example: curl -X GET -d 'path=test_dir/test_file_via_curl' my_storage_ip/api/upload

  3. my_storage/api/upload <- resourse to upload files or text

    METHODS: POST, PUT

    ARGS:

    path='path/to/file' - file's path you want to upload;

    text='text' - file text;

    or

    file='@file' - chosen file;

    Curl example with text: curl -X POST -d 'path=test_dir/test_file_via_curl' -d 'text=test text' my_storage_ip/api/upload

    Curl example with file: curl -X POST -F 'path=secret_files/hot_mom_stuck_in_washing_machine.mp4' -F 'file=@test_file_to_upload' my_storage_ip/api/upload

How to deploy:

# Clone it
git clone https://github.com/rshafikov/my_storage.git
# Change work directory
cd my_storage/deploy/
# Create env file with your options
cat > .env
# FRONTEND_DEBUG='False' or 'True' - skipable
# API_URL_REDIRECT='your server white IP' - necessarily
# ALLOWED_HOSTS='*' change this if you want more safety - skipable

# Run it, but idk how you will install docker compose, not my business
sudo docker compose up -d
# Upload your first file via curl
curl -X POST -d 'path=test_dir/test_file_via_curl' -d 'text=Hello World!' your_server_white_IP/api/upload

my_storage's People

Contributors

rshafikov avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.