Thank you for your interest in contributing to POIDH! Before you start coding, please review this guide to ensure a smooth process from development to submitting a pull request.
If you're new or unsure where to begin, check the Discussions tab for ideas and help.
This guide will help you set up your local environment for running and contributing to the POIDH app, including setting up automatic formatting and linting.
- Cloning the Repository
- Installing Node.js and pnpm
- Installing Dependencies
- Running the Project
- Submitting Pull Requests
-
Clone the repository to your local machine. Ensure you have Git installed. Git installation guide.
git clone https://github.com/picsoritdidnthappen/poidh-app
-
Navigate into the project directory.
cd poidh-app
POIDH uses pnpm as a package manager and requires Node.js v18.12 or higher.
-
Check your versions to confirm compatibility:
node -v pnpm -v
-
If you need to install or update:
Before starting, make sure to clone the Indexer repository:
git clone https://github.com/yukigesho/poidh-indexer.git
Next, follow the setup instructions in the Indexer repository's README. Don't forget to configure the .env
file with your PostgreSQL database connection URL:
DATABASE_URL="postgresql://<username>:<password>@<host>:<port>/<database>"
Ensure the database is properly set up before proceeding.
-
In the project root directory, install all required dependencies:
pnpm install
-
This command will update and install all necessary packages.
-
Start the POIDH app:
pnpm start
Or, if you're running a development build:
pnpm dev
-
The app should now be running locally! Check your terminal output for any additional information or errors.
To contribute code, follow these steps:
-
Style Guide: Please review the POIDH style guide to maintain consistency in the codebase.
-
Code Check: Before submitting, make sure your code is formatted and linted. GitHub Actions will automatically build, lint, and format your pull request, highlighting issues if they exist.
-
Commit Titles and Descriptions: Keep titles and descriptions concise yet informative to help reviewers understand your changes.
-
Build Command: Don’t forget to run the following to ensure your build is up to date:
pnpm build
-
Pull Request Review: After submitting, if you see a ❌, review the error logs under the “Actions” tab to identify any issues.
We appreciate your contribution to POIDH. Happy coding and thank you for helping to make POIDH even better!