First off, thank you for considering to contribute to Pig Dice! I welcome any and all contributions!
Please feel free to raise an issue, start a discussion or reach out to me at @troypoulterr.
Fork the repository by clicking the fork button in the top-right corner of this page.
git clone https://github.com/your-username/pig-dice.git
cd pig-dice
npm install
Make a copy of .env.example
and name it .env
, so that the .gitignore
won't commit anything.
If you're running the Partykit server locally (recommended), you can keep NEXT_PUBLIC_PARTYKIT_HOST
commented out.
We use Turso for the SQLite database, you can choose to either connect to a live database hosted by them or run it locally using their CLI. Running it locally is recommended for dev work.
Follow their fantastic Quickstart guide and copy the URL and token into the environment variables.
Start by reading their CLI installation guide, then their Local development - Turso CLI for the most up-to-date approach on setting it up!
npm run db:push
npm run dev
This will start Next.js as the full-stack app, as well as Partykit for the websockets, that's it!