An online files-storage app designed to be fast & easy to use. Built for people who don't want to mess with too much buttons and use apps like Google Drive / iCloud purely for functionality.
🚀 Delete & Download with one-click
🚀 Add single / multiple files with simple drag & drop
🚀 Two-step email authentication
🚀 Client side file encryption
First clone the git repo:
git clone https://github.com/ya5huk/safe_cloud
Download the relevant libraries described in requirements.txt using pip:
pip install -r requirements.txt
Initialize relevant environment variables in a file .env (Add the file yourself). The file must include:
EMAIL_USERNAME, the 2step auth sender usernameEMAIL_PASSWORD, the 2step auth sender password (Note that this needs to be an app password)IS_IT_A_REAL_EMAIL_API_KEY, an api key for https://isitarealemail.com/. NOTE that the api does not work consistantly and used more for theoretic-use (Good email validators cost money)
Finally, run the app using
py app.py or python app.py
and enter http://127.0.0.1:5000/
As mentioned in the book, here are the main technologies:
- Flask, a python framework to run web apps written in Python
- Flask-Session, a flask add-on that enables option for sessions to be saved in other places than client-side
- Smtplib, A library for SSL-Mail connection. Used for the 2-step authentication
- Email checker, Used to determine whether an email is valid (prevent useless sending)
- CryptoJS, for AES encryption with javascript (client-side)
- jquery, for dynamic website changes (f.e. adding a file & updating file list on the page)
- Bootstrap, to speed up and ease the frontend developing