Thank you for your interest in contributing to Nimbus! This guide will help you set up the development environment.
git clone https://github.com/nimbusdotstorage/Nimbus.git
cd Nimbusbun iWe use Docker to run a PostgreSQL database for local development. Follow these steps to set it up:
-
Start the database:
bun db:up
This will start a Postgres container with default credentials:
- Host:
localhost - Port:
5432 - Database:
nimbus - Username:
postgres - Password:
postgres
- Host:
-
Verify the database is running if running a detatched container:
docker compose ps
You should see the
nimbus-dbcontainer in the list with a status of "Up". -
Connect to the database (optional):
# Using psql client inside the container docker compose exec postgres psql -U postgres -d nimbus
Copy the .env.example file to .env using this command, cp .env.example .env and fill in these values:
How to setup Google keys?
-
Navigate to Google Cloud console.
-
Create a new project and navigate to its dashboard.
-
Under API & Services, navigate to Oauth Consent Screen and enter the details.
-
Now create a client. Add Authorised Javascript origin as
http://localhost:3000and Authorised redirect uri ashttp://localhost:1284/api/auth/callback/googleand get yourclient_idandclient_secret. -
Now navigate to Audience and add Test users.
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
# To generate a secret, just run `openssl rand -base64 32`
BETTER_AUTH_SECRET=How to get a Resend API Key?
-
Go to Resend.com and sign up or log in to your account.
-
From the dashboard, click on "API Keys" in the sidebar.
-
Click the "Create API Key" button.
-
Enter a name for your key (e.g.,
nimbus-dev) and confirm. -
Copy the generated API key.
-
Add it to your
.envfile:
RESEND_API_KEY=your-api-key-hereAfter setting up the database, run the migrations:
bun db:migrateIn a new terminal, start the development server:
NOTE: this starts both the web and server development servers, to run just one, use
bun dev:weborbun dev:server. Both will need the db running to work.
bun devThe application should now be running at http://localhost:3000
- On GitHub, click the "Fork" button and make your own fork of the repo
git clone https://github.com/\<yourusername\>/nimbus.git
cd nimbusgit checkout -b feature/your-feature-nameAdd the original repo as a remote:
git remote add upstream https://github.com/nimbusdotstorage/nimbus.gitMake sure to pull from the upstream repo to keep your fork up to date using
git pull upstream main
git add .
git commit -m "Your commit message"git push origin feature/your-feature-name- Go to GitHub and open a pull request from your feature branch
-
Stop the database:
bun db:down
-
Reset the database (deletes all data):
bun db:reset
- Port conflicts: If port 5432 is already in use, just change the port mapping in
docker-compose.yml - Permission issues: On Linux, you might need to run Docker commands with
sudoor add your user to thedockergroup with the commandsudo usermod -aG docker $USER - Database connection issues: Ensure the database is running and the connection string in your
.envfile is correct
By contributing to this project, you agree that your contributions will be licensed under its Apache License 2.0.
We want everyone to be able to contribute something to Nimbus. So we set up a list of a few items that can get you started contributing to the project. You can also check out the roadmap for ideas. This will be updated as needed.
If you have experience with the APIs or specs for S3, R2, OneDrive, or any other storage source, we would love it if you help us add support for it. Try to stay as close to the API spec as possible, especially for S3 storage so we can support S3 compatible storage sources like MinIO.
Some items to get started with:
- Add a missing page or component
- Add error or loading states to a page or component
- Add custom file icons for specific file types
- Create modals for file actions (add, delete, rename, move, etc.)
- Create modals for adding new storage sources
- Create modals for tag management (add, delete, edit, rename, etc.)
- Create pop ups for uploading files & folders
- Notification dropdown
- A settings page that functions with the providers and user settings
- Add folder tree navigation, breadcrumbs, or a file previewer
We realize that many of these changes will not have total functionality hooked up yet. Thats fine, just make sure to add dummy data so we can see the UI and make sure it works as expected before adding real data.
Some items to get started with:
- Any security related changes
- tRPC support with Hono. Add the provider and migrate a few routes that haven't been migrated.
- Add in storage support drivers like OneDrive, S3, etc.
- Add account linking to the Better-Auth config if needed.
- Add authentication to the API routes if needed.
- Add rate limiting to the API routes if needed.
- Add database tables and migrations if needed for new features.
- Add or improve logging with a lightweight logger.
- Improve error handling.
Some items to get started with:
- We need a logo.
- Tag color selection
- Visual hierarchy improvements
- Transitions and component design
- Any errors in spacing, margin, sizing, mode toggling, or responsiveness that you can find.
Some items to get started with:
- Update the README.md or CONTRIBUTING.md if they are out of date.
- Improve error messages on both the frontend and backend.
- Add tests to the backend using Vitest
- Add tests to the frontend using Playwright
- Help us build a public API for Nimbus
- Build a CLI for that API to upload/download/manage files form the terminal