Code Monkey home page Code Monkey logo

filehub's Introduction

FileHub

A simple cloud based file storage platform.

Installation

  • Clone the repository.
  • For object storage, we have used a locally hosted single node instance of MinIO.
    • MinIO is fully compatible with AWS S3, thus is easily swappable if required.
  • Create and activate a python virtual environment:
    • Linux/macOS: $ python3 -m venv .venv && source .venv/bin/activate
    • Windows (Powershell): $ python -m venv .venv && .venv\Scripts\activate
  • Install dependencies: $ pip install -r requirements.txt
  • Install git hook scripts: $ pre-commit install
  • Navigate to src directory and create a .env file to setup the required environment variables, provided in .env.dist file.
  • Run migrations: $ python manage.py migrate
  • (Optional) Create a superuser to access the admin site: $ python manage.py createsuperuser
  • Run the webserver: $ python manage.py runserver

Troubleshooting

  • Check if you are using the correct python version. Recommended versions include 3.10 and higher (CPython implementation)
  • If the virtual environment setup command for Windows does not run on the Windows Powershell, consider the following variations:
    • Split the command on && and run them separately.
    • On cmd, for the second part of the command, try: $ .venv\Scripts\activate.bat
  • If email communication is not working, check if you have configured:
    • Email used has the domain gmail.com
    • Two-factor authentication is enabled on your Google account.
    • You are using a valid App Password generated from your Google account.
    • Email port (587) not blocked by firewall.
  • If you use a proxy server, make sure to exclude your private IP addresses (for both django and MinIO) to avoid any protocol hassle.

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.