Thank you for your interest in Dashibase! Before you begin, be sure to check out the code of conduct and the existing issues.
Dashibase is written with the following frameworks and tools:
We strongly encourage contributors to be familiarized with these tools.
Before you can start helping with Dashibase, you will want to install and configure the following dependencies on your machine:
To contribute code to Dashibase, you need to fork the repository.
To build Dashibase, you clone your fork of the repository:
-
Clone your GitHub forked repository:
git clone https://github.com/<github_username>/lotion.git
-
Go to the Lotion directory:
cd lotion
Install npm dependencies:
```sh
npm i
```
-
Start development server
npm run dev
-
To access the local server, enter the following URL into your web browser:
http://localhost:5173/
- Run tests
First, familiarize yourself with the libraries we are using for tests.
Lotion uses Vitest for unit and component tests, as well as Playwright for e2e tests.
After cloning the repository to your local environment and running npm i
, you can run tests with the following:
npm run test:unit
npm run test:e2e
The same tests will run for any PR requested to the main
branch, and all tests should pass before any PR is merged.
- Write tests
All new features should be accompanied by at least one test for the new feature.
All bug fixes should be accompanied by a test that replicates the bug.
When writing a test, check that it fails correctly before checking that it passes.
After you've made the improvements, you can open a pull request and a member of the Dashibase team (well either SK or Alfred for now!) will work with you on the PR!
Did you have an issue, like a merge conflict, or don't know how to open a pull request? Check out GitHub's pull request tutorial on how to resolve merge conflicts and other issues.
Once your PR has been merged, you will be proudly listed as a contributor in our contributor chart!