Files
Nimbus/CONTRIBUTING.md

4.6 KiB

Contributing to Nimbus

Thank you for your interest in contributing to Nimbus! This guide will help you set up the development environment.

Read the README for how to set up the development environment.

Making Changes

Fork the repo

  • On GitHub, click the "Fork" button and make your own fork of the repo

Clone your fork locally

git clone https://github.com/\<yourusername\>/Nimbus.git
cd Nimbus

Create a feature branch

git checkout -b feature/your-feature-name

Add the original repo as a remote:

git remote add upstream https://github.com/nimbusdotstorage/Nimbus.git

Make sure to pull from the upstream repo to keep your fork up to date using git pull upstream main

Commit your changes

git add .
git commit -m "Your commit message"

Push to the branch

git push origin feature/your-feature-name

Open a pull request

  • Go to GitHub and open a pull request from your feature branch

Note: If you open a pull request, try to minimize the amount of repo wide changes you make. It will highly increase the chances that we just review and merge. We're much more likely to question and challenge changes if they do not make sense to the actual features or fixes the PR was intended for. Example: adding unneeded dependencies for the server when the PR was for a dialog component, or changing the middleware functionality when you were working on better error handling on the server

Useful Commands

  • Stop the database:

    bun db:down
    
  • Reset the database (deletes all data):

    bun db:reset
    

Troubleshooting

  • 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 sudo or add your user to the docker group with the command sudo usermod -aG docker $USER
  • Database connection issues: Ensure the database is running and the connection string in your .env file is correct

License

By contributing to this project, you agree that your contributions will be licensed under its Apache License 2.0.


For new contributors

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. This will be updated as needed.

1. Storage source support

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.

2. UI/UX improvements

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.

3. Backend Improvements

Some items to get started with:

  • Tests!!!
  • Any security related changes
  • Add in storage support drivers like R2, etc. OR add functionality to existing drivers
  • 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.

4. Design

Some items to get started with:

  • Tag color selection
  • Visual hierarchy improvements
  • Transitions and component design
  • Any errors in spacing, margin, sizing, mode toggling, or responsiveness that you can find.

5. General Improvements/Features

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