Getting ready with Next.js
Since we will create a complete ticketing system software, you must first create a new Next.js project. For that, simply run the following command:
npx create-next-app ticket-system --app --src-dir --use-npm --eslint --js
This will create a Next.js project named ticket-system
using App Router, as well as add sensible defaults such as eslint
, the beloved src
directory, and the activation of npm
as the script runner (which is more widespread as opposed to yarn
).
If you want to use it with TypeScript, simply exchange --js
with --ts
.
Note
This book does not use TypeScript for project creation. The reason is extremely simple: If you know TypeScript and want to use it, you can just write any of the upcoming code in this book with TypeScript instead. There’s no added complexity. However, Supabase is technology-agnostic, so for those who don’t know TypeScript, adding it would’ve been an additional layer of complexity...