ownUI Setup

Install and configure ownCloud on your EC2 instance. Enable public file upload access and connect it with AWS services.

Step 1: Clone the Repo

  • Download the necessary files from the provided repository.


Step 2: Setting up Middleware

  • Navigate to the folder where owncloud-middleware is located in your project.

  • In this folder, open the terminal. (Right Click to open the terminal)

  • First, connect to your EC2 instance using SCP to transfer the middleware:

    scp -i ownCloudKey.pem -r owncloud-middleware/ ubuntu@34.227.74.159:~/
  • SSH into the EC2 instance:

    ssh -i ownCloudKey.pem ubuntu@34.227.74.159
  • Navigate to the owncloud-middleware directory:

    cd owncloud-middleware
  • Update the package list and install required packages:

    sudo apt update
    sudo apt install python3-venv -y
  • Create and activate a Python virtual environment:

    python3 -m venv venv
    source venv/bin/activate
This is how your terminal configuration will look like.
  • Install the necessary Python dependencies:

    pip install fastapi uvicorn python-dotenv requests
    pip install python-multipart
  • Run the FastAPI middleware:

    uvicorn main:app --host 0.0.0.0 --port 8000

Access the FastAPI Docs at: https://34.227.74.159:8000/docs. This service will run on Port 8000.

Step 3: Running the Node.js Server

  • Navigate to the directory where your Node.js project (server.js) is located.

  • Start the Node.js server:

    node server.js

The server will run on Port 5501.

Step 4: Project Ready

Your project is now ready! You can access it and interact with the following features:

  • Upload and delete files.

  • If the same file is uploaded by two users, metadata is updated to reflect the new user.

  • When a user deletes a file, their reference is removed from the metadata.

  • If the final user deletes the file, the file itself is removed from storage.

Frontend UI of DeDeuper.

Last updated