This guide will get Opndrive running on your computer. We'll go step by step, and don't worry if something goes wrong - we've included troubleshooting tips!
First, let's get the Opndrive code onto your computer.
# Download the code from GitHub
git clone https://github.com/Opndrive/opndrive.git
# Go into the project folder
cd opndriveWhat this does:
git clonedownloads all the code files to your computercd opndrivemoves you into the project folder
Now we need to download all the code libraries that Opndrive uses.
# Install main project dependencies
pnpm install
# Go to the frontend folder and install its dependencies
cd frontend
pnpm install
# Go to the s3-api folder and install its dependencies
cd ../s3-api
pnpm install
# Go back to the main folder
cd ..What this does:
- Downloads all the JavaScript libraries Opndrive needs
- Sets up three parts of the project: main, frontend, and s3-api
This might take a few minutes - pnpm is downloading lots of files!
That's it for setup! Opndrive handles configuration through its user interface, so we don't need to manually edit any files.
Time to see Opndrive in action!
# Make sure you're in the frontend folder
cd frontend
# Start the development server
pnpm devYou should see output like:
- ready started server on 0.0.0.0:3000, url: http://localhost:3000
Open your web browser and go to: http://localhost:3000
You should see the Opndrive welcome page!
-
Click the "Get Started" button in the center of the page
-
You'll be redirected to
/connect- this is Opndrive's setup wizard -
Enter your AWS credentials in the simple form:
- AWS Access Key ID
- AWS Secret Access Key
- AWS Region (like
us-east-1) - S3 Bucket Name
-
Click "Connect" and Opndrive will:
- Test your credentials
- Save them securely in your browser's local storage
- Redirect you to your dashboard
After connecting successfully:
- Your personal cloud storage dashboard
- File and folder browser
- Upload, download, and file management features
- All your S3 files and folders displayed beautifully
The best part? Your credentials stay in your browser's local storage - they never leave your computer! and if you click on "User-Icon" > "Clear Session", all your credentials will be removed from local storage.
In your terminal, press Ctrl+C (or Cmd+C on Mac) to stop the server.
cd opndrive/frontend
pnpm devIf you want to switch to a different S3 bucket or AWS account:
- Click on the user icon in the top right corner
- Select "Clear Session" to remove current credentials
- Refresh the page and you will be redirected to home page then click on "Get
Started" to redirect to
/connectpage - Enter new AWS credentials
No problem! You can:
- Create a free AWS account at aws.amazon.com
- Create an S3 bucket (there's a free tier)
- Get your access keys from the AWS console
- Come back and connect through the Opndrive UI
- Make sure you installed pnpm:
npm install -g pnpm - Restart your terminal and try again
- Something else is using port 3000
- Stop other development servers or change the port:
pnpm dev -- --port 3001Then go to http://localhost:3001
- Try deleting
node_modulesand installing again:
rm -rf node_modules
pnpm install- Make sure the dev server is running (look for the "ready started server" message)
- Check you're going to the right URL: http://localhost:3000
- Try refreshing the page
- If you see connection errors, double-check your AWS credentials
- Make sure your S3 bucket exists and your access keys have the right permissions
- The Opndrive UI will show helpful error messages to guide you
When you run pnpm dev, you're starting a development server that:
- Watches your code for changes
- Automatically reloads the browser when you save files
- Shows helpful error messages
- Compiles TypeScript to JavaScript in real-time
This is different from a production server - it's designed to help you develop and test changes quickly.
Congratulations! You now have Opndrive running on your computer!
Next: Learn about Understanding the Code to see how everything works.