A Next.js v13 starter template for building apps Access Protocol utilizing:
- Solana Web3.js for communication with Solana
- Solana wallet adapter to connect various wallets
- Access protocol JS bindings to talk to Access Protocol smart contract
- Radix UI, Tailwind CSS and excelent UI lib by shadcn/ui
Requirements:
- Start the project with
create-next-app:
npx create-next-app -e https://github.com/Access-Labs-Inc/next-js-starter- Edit
.envand update accordingly the ENV variables. - Install dependencies:
pnpm install - Migrate DB:
npx prisma migrate dev - Seed DB:
npx prisma db seed - Run the app:
pnpm dev
To run dev env: pnpm dev
To start production build: pnpm preview
To lint and fix issues: pnpm lint:fix
To format code: pnpm format:write
Generate migration:
npx prisma migrate dev --name initSeed the database:
npx prisma db seedGenerate new metadata (also runs as postinstall after each pnpm install):
npx prisma generate- Next.js 13 App Directory
- Radix UI Primitives
- Tailwind CSS
- Shadcn UI
- Icons from Lucide
- Dark mode with
next-themes - Tailwind CSS class sorting, merging and linting.
- t3-env
- Zod for TS-first schema based validation
- Prisma connecting the DB
Licensed under the MIT license.