Giter Site home page Giter Site logo

filestore's Introduction

Cloud File Storage - CFS

Best Viewed on a markdown editor

This project contains 3 apps. Server and web modules are dockerized and can be easily run using docker-compose.

1. Server

This is a nodejs/typescript app. For api documentation check swagger ui.

API

2. Web

This is an angular (v11) app. I used angular as I hadn't worked on front end for a long time and this was one framework, I had used few years back.

UI

3. Cli

This is a nodejs app that can be installed on local machine as a binary. Ideally we would distribute this over some cloud repository (like npm). For building this and installing locally, it requires node14+. (Might work on lower versions but not tested)

CLI

Running the app

To start the server and web ui, execute the below commands.

## From root folder
docker build -t fs-server:latest ./server

## This might take 3-4 mins
docker build -t fs-ui:latest ./web/fs-ui

## Start api & web services
docker-compose up

Check web ui on http://localhost:8080
API documentation on http://localhost:3000/api/docs

Installing cli locally

Ensure you're using node14+. Execute the following command

cd cli/fs-store && yarn refresh && yarn local && cd ../..

Cli Usage -

Usage: fs-store [options]

Options:
  -V, --version          output the version number
  -u, --upload <file>    Upload file to the server
  -l, --list             List files on the server
  -d, --delete <fileId>  Delete file from the server
  -h, --help             display help for command

TODO

  1. Add test cases
  2. Handle bad inputs on UI

filestore's People

Contributors

anandjoshi91 avatar

Watchers

James Cloos avatar  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.