Spaces:
Runtime error
Runtime error
Update README.md
Browse files
README.md
CHANGED
|
@@ -8,4 +8,26 @@ pinned: false
|
|
| 8 |
license: apache-2.0
|
| 9 |
---
|
| 10 |
|
| 11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
license: apache-2.0
|
| 9 |
---
|
| 10 |
|
| 11 |
+
A simple File Storing and Retrieving tool for personal use.
|
| 12 |
+
|
| 13 |
+
- Uses Flask to manage access and perform actions on the data.
|
| 14 |
+
- User can Upload and Delete the data files.
|
| 15 |
+
- Uses MongoDB for storage.
|
| 16 |
+
- Uses simple authetication via secret key in the virtual production environment.
|
| 17 |
+
|
| 18 |
+
Hosted on HuggingFace:
|
| 19 |
+
> [File Storage System](https://abhicodes-file-storage-system.hf.space)
|
| 20 |
+
|
| 21 |
+
To set up your own tool just duplicate the repo. Add the following Environment variables:
|
| 22 |
+
|
| 23 |
+
1. **SECRET_KEY**= *-- Your Super Secret Key --*
|
| 24 |
+
2. **APP_PASSWORD**= *-- Your authetication password --*
|
| 25 |
+
3. **MONGO_USERNAME**= *-- Your MongoDB username for Cluster --*
|
| 26 |
+
4. **MONGO_PASSWORD**= *-- Your MongoDB password for Cluster --*
|
| 27 |
+
5. **REST_URI**= *-- Rest URI of that Cluster --*
|
| 28 |
+
|
| 29 |
+
> **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***)
|
| 30 |
+
|
| 31 |
+
> **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.
|
| 32 |
+
|
| 33 |
+
> **NOTE :** To get more knowledge about MongoDB setup got to this reference: [MongoDB - PyMongo Docs](https://www.mongodb.com/docs/languages/python/pymongo-driver/current/get-started/)
|