Spaces:
Sleeping
Sleeping
metadata
title: File Storage System
emoji: π
colorFrom: pink
colorTo: red
sdk: docker
pinned: false
license: apache-2.0
A simple File Storing and Retrieving tool for personal use.
- Uses Flask to manage access and perform actions on the data.
- User can Upload and Delete the data files.
- Uses MongoDB for storage.
- Uses simple authetication via secret key in the virtual production environment.
Hosted on HuggingFace:
To set up your own tool just duplicate the repo. Add the following Environment variables:
- SECRET_KEY= -- Your Super Secret Key --
- APP_PASSWORD= -- Your authetication password --
- MONGO_USERNAME= -- Your MongoDB username for Cluster --
- MONGO_PASSWORD= -- Your MongoDB password for Cluster --
- REST_URI= -- Rest URI of that Cluster --
NOTE : The default username for the application is setup to be 'admin'. (You can change it in the code at line 33, inside check_auth() function)
NOTE : While setting up MongoDB Cluster save the username and password somewhere safe. The name of the cluster (used in Rest URI) can be anything. The databse name must be 'file_storage' and the collection inside it must be 'files' if you don't want to tamper with the code.
NOTE : To get more knowledge about MongoDB setup got to this reference: MongoDB - PyMongo Docs