A game in p5js designed by my son
Vite starter template to scaffold a new p5.js project.
This is an unopinionated template; aside from P5.js and Vite, the rest of your project's tools are entirely up to you.
For a live demo please visit this page.
Pull the template files with degit and install dependencies.
npx degit makinteract/p5js-vite my-project
cd my-project
npm install
npm run dev
npm run dev
- Starts the development server at port 3000npm run build
- Builds the application in adist
foldernpm run preview
- Serves the build files (dist
folder) locally at port 5000
Note that if after this last command you do not see anything, you can use instead this other command:
npm run preview --host
- You should then be able to see your files locally at port 5000