Code Monkey home page Code Monkey logo

fileshare's Introduction

Fileshare

Currently its a project in progress, aimed for learning and practice.

Requirements

  • docker-compose >= 1.25.3
  • node >= 10 LTS
  • yarn

Development environment

  • build docker containers docker-compose build
  • run the docker-compose environment: docker-compose up
  • run database migrations in different window
    cd backend
    yarn
    yarn db:migrate
  • frontend is available at http://localhost:8081/
  • adminer (mysql management) is available at http://localhost:8082/ - user: root password: example
  • frontend tests (requires docker-compose up): docker-compose exec frontend bash -c "yarn test"
  • backend tests (requires docker-compose up): docker-compose exec backend bash -c "yarn test"

Technologies

  • Node.js 10 LTS - backend
  • React.js - frontend
  • MySQL - database
  • Docker - container

What is implemented:

  • register user
  • login user
  • change user name (not login)
  • list user files
  • upload file
  • delete file
  • change file description
  • compression job runs every 1 minute to zip files in the database
  • list files for all users

What would be next steps:

  • add file/redis caching on the backend for files retrieved from the database
  • improve responsiveness on the frontend
  • write snapshots tests for components
  • add flash messages for success, failure for every action
  • move compression job to separate docker container so backend service is independent and can be scaled
  • change from cron to queue worker so there is no need to wait one minute for compression cron
  • add more integration tests for API endpoints
  • add more logging on the backend side
  • move db query logic from backend main.js to service/model
  • improve handling of big files - currently it fails because of max_allowed_packets error

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.