Multiplayer head-to-head snake game, built with React, Next.js, and typescript.
This project was generated using this template by @PizzaFox
Run the build
script to build the project for production.
There are a number of ways to serve your app once you have built it for production.
You can use the start
script to start a server that will serve your app
yarn start
You can also export the built site as a static site consisting of just HTML, JS, and CSS files.
yarn export
You can start a development server served at localhost:3000
by default.
yarn dev
This project uses Prettier and XO.
You can run Prettier in the project with this command:
yarn run style
This project uses XO (which uses ESLint and some plugins internally) to perform static analysis on the TypeScript. It reports things like unused variables or not following code conventions.
yarn run lint
Note that XO will also error if you have incorrect formatting, not just if your TypeScript code has errors.