Thank you for your interest in contributing to our project! Any contribution is highly appreciated and will be reflected on our project ✨
First things first, make sure you read our Code of Conduct to keep our community approachable and respectable.
In this guide, you will get an overview of the project structure and setup, as well as the workflow from opening an issue, creating a PR, reviewing, and merging the PR.
Here are some resources to help you get started with open source contributions:
- Finding ways to contribute to open source on GitHub
- Set up Git
- GitHub flow
- Collaborating with pull requests
Our preferred way of providing the opportunity for people to contribute to Noodle is through a process that starts with creating a new issue, the summary of the workflow that you can expect and should adhere to is the following:
- You see an area of improvement in the code base, this could be a fix, feature, refactoring...etc
- Create an issue on our Github repository.
- Wait until a team member discusses the issue with you, and if both parties are in agreement, you can assign yourself to the issue.
- Start working on the issue, creating a draft pull request and remembering to link your pull request with the issue.
- Once the work is complete, change the status of the pull request to ready for review.
- We will review the pull request and if all is good, congratulations! 🥳 you are now a Noodle contributor!
- If not, we will explain the changes that need to be made for the pull request to be merged.
- Don't work on an issue that has already been assigned to someone.
- Don't work on something without getting a team member's approval, this is to not waste your time by making you work on something that won't be merged.
- Don't demand for your pull request to be approved and merged.
- Be nice to everyone involved, we are aiming to create a positive community around collaborating and contributing towards Noodle's development.
The Building blocks:
The actual stack:
Development stuff:
There are a lot of other technologies being used in this project, however these are the most important and influential bits of it.
To clone the repo, you firstly need to fork it, and then clone your copy of noodle locally.
git clone https://github.com/<your-gh-username>/noodle.git
To get the project running locally, it is advised that you have Volta installed on your system. This allows you to have the exact same versions of NodeJS and Pnpm as we do, further lowering the chances of you getting errors that we don't get.
There are ways to do this using other tools such as NVM, but we take Noodle as an initiative to move people to arguably better tools such as Volta.
Volta's pnpm support is currently experimental, and so you need to do the following to let it manage your Pnpm version:
In your .bashrc
or .zshrc
file, add the following line:
export VOLTA_FEATURE_PNPM=1
With this out of the way, you should have the correct version of Nodejs and Pnpm once you change directory into Noodle's project folder. You can test this out as such:
# cd into noodle
cd /path/to/noodle
# output node and pnpm versions
node --version
pnpm --version
And make sure that the version is the same as the one defined in the root package.json
file in the volta
section.
Now that Volta has been installed locally on your system, it's time to configure your environment variables so that the project works as expected:
- Duplicate the
.env.example
file as just.env
- Populate the values with your own
You will need to create a postgres database and get the URL of it to use as the database for your local instance, we personally use Neon as our database provider and hence we just create a development branch that we use instead of creating a local postgres instance.
We also use Upstash for rate limiting and a redis instance.
You will also need to configure oauth github tokens to be able to use the authentication functionality of Noodle.
Also, if you want your own personal nx cloud instance, you will need to create a project on nx cloud and replace the default read only token provided.
To install the dependencies needed to run Noodle, you need to run pnpm install
, this will install all of the packages that we use.
# Run the project's dev server
pnpm dev
# Build the project
pnpm build
# Run the built project in production mode
pnpm start
# Lint
pnpm lint
# Format
pnpm format:write
Also, if in doubt and something is going wrong, pnpm clean
.
This is only a subset of the important commands that you will be using throughout your usage of Noodle's codebase. Be sure to check out the package.json file for the full list and get familiar with Nx's commands for more complex use cases.
Again, thank you so much for your interest in contributing to Noodle, we really appreciate it, and if there is anything we can do to help your journey, make sure to join our Discord Server.