How to install myDrive on Windows 10
This tutorial will guide you on how to install myDrive from GitHub on your Windows 10 computer.
Prerequisites
- Ensure that you have installed Python 3.x on your computer.
- Install Git on your computer.
Steps
Open Git Bash on your Windows 10 computer.
Clone the myDrive repository to your local machine by running the following command in the Git Bash terminal:
git clone https://github.com/subnub/myDrive.gitThis will download the required files and create a new directory called "myDrive" on your computer.
Navigate to the "myDrive" directory using the following command:
cd myDriveInstall the required Python packages by running the following command in the terminal:
pip install -r requirements.txtThis will install the required dependencies for myDrive to run on your computer.
Create a ".env" file by running the following command in the terminal:
cp .env.example .envOpen the ".env" file using a text editor, and modify the following variables to match your preferences:
SECRET_KEY=<your_secret_key_here> DEBUG=TrueBe sure to replace
<your_secret_key_here>with any random string of characters.Note: The
DEBUGflag should only be set toTruefor development purposes. Set it toFalsewhen deploying to a production environment.Run the following command to create the necessary database tables:
python manage.py migrateCreate a user account by running the following command:
python manage.py createsuperuserThis will prompt you to enter a username, email, and password for the user account.
Finally, start the myDrive server by running the following command:
python manage.py runserverThis will start the server on your local machine. You can access the myDrive website by navigating to http://localhost:8000/ on your web browser.
Congratulations! You have successfully installed myDrive on your Windows 10 computer.