We would love your help! We want to make contributing to this project as easy and transparent as possible.
- Clone the repository.
- Copy the
.env.example
file to.env
.- Change the
ORIGIN
variable tohttp://localhost:5173
. - Change
db
tolocalhost
in theDB_URL
.
- Change the
- Run
bun setup
to install dependencies, start the database, run the migrations and run the application. - From now on, you can run
bun d
to run the application.
The following is a summary of the ideal contribution flow. Please, note that Pull Requests can also be rejected by the maintainers when appropriate.
┌───────────────────────┐
│ │
│ Open an issue │
│ (a bug report or a │
│ feature request) │
│ │
└───────────────────────┘
⇩
┌───────────────────────┐
│ │
│ Open a Pull Request │
│ (only after issue │
│ is approved) │
│ │
└───────────────────────┘
⇩
┌───────────────────────┐
│ │
│ Your changes will │
│ be merged and │
│ published on the next │
│ release │
│ │
└───────────────────────┘
AirTrail has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what sort of behaviour is expected.
We use GitHub to host code, to track issues and feature requests, as well as accept pull requests.
- 2 spaces for indentation.
- 80 character line length.
- Run
bun run lint
to check for linting errors. - Run
bun run format
to format the code.
Open an issue only if you want to report a bug or a feature. Don't open issues for questions or support, instead join our GitHub discussions and ask there.
Please use our issues templates that provide you with hints on what information we need from you to help you out.
Please, make sure you open an issue before starting with a Pull Request, unless it's a typo or a really obvious error. Pull requests are the best way to propose changes to the specification. Take time to check the current working branch before working 😉
Ensure that your code follows the code style and that you have run the tests before submitting a pull request. If you are adding a new feature, make sure to add tests for it.
Our repository follows Conventional Commits specification.
Pull requests should have a title that follows the specification, otherwise, merging is blocked. If you are not familiar with the specification simply ask maintainers to modify. You can also use this cheatsheet if you want:
fix:
prefix in the title indicates that PR is a bug fix.feat:
prefix in the title indicates that PR is a feature.docs:
prefix in the title indicates that PR is only related to the documentation.chore:
prefix in the title indicates that PR is only related to clean up in the project.test:
prefix in the title indicates that PR is only related to tests.refactor:
prefix in the title indicates that PR is only related to refactoring.
Prefix that follows specification is not enough though. Remember that the title must be clear and descriptive with usage of imperative mood.
Happy contributing ❤️
When you submit changes, your submissions are understood to be under the same GPL-3.0 license that covers the project.
This document was adapted from the open-source contribution guidelines for Facebook's Draft.