spacerr
v3.0.0
Published
This starter pack provides a comprehensive Next.js setup, built on top of `create-next-app`, and includes additional features. Developed by spacerrr.
Downloads
1,526
Maintainers
Readme
Spacerr Starter Pack
This starter pack provides a comprehensive Next.js setup, built on top of create-next-app
, and includes additional features such as:
Auth
NextAuth v5 is used for authentication. You can find the documentation here.
Database - ORM
Global state management and data fetching
- TanStack Query: For powerful data fetching and async state management.
- Zustand: For global state management.
Email service provider
- Resend: A lib, makes it easy for anyone to write, format, and send emails
Type safety and runtime validation
UI Components
- Shadcn: A collection of copy paste components for beautiful UI.
- Tailwind CSS: A utility-first CSS framework for rapid UI development.
- Framer Motion: A production-ready motion library for React.
Code Styling
- ESLint: Basic ESLint setup for code quality.
- Prettier: Code formatting for consistency.
- VS Code workspace: This workspace is equipped with essential extensions to enhance code quality. Please ensure you install the recommended extensions and work within the workspace.
How to run the project
- Install Node.js version
^20.16.0
or later: Node.js - Install pnpm
npm install -g pnpm
- Install project dependencies -
pnpm install
- Create a
.env
file in the root of the project and add the environment variables which is provided in.env.example
file. - Generate prisma client -
pnpm prisma:generate
- Sync database -
pnpm prisma:push
- Run the application -
pnpm dev
Available commands
pnpm dev
: Runs the application in development mode.pnpm build
: Builds the application for production.pnpm prisma:push
: Syncs the database with the schema.pnpm prisma:generate
: Generates Prisma client.pnpm start
: Starts the application in production mode.pnpm lint
: Lints the application using ESLint.pnpm postinstall
: Runs the postinstall script to generate Prisma client.pnpm prepare
: Runs the prepare script to set up Husky for Git hooks.
Additional Information
Once the application is running, you can start developing with a powerful setup already configured. For more details on customizing your environment or extending the starter pack, refer to the documentation of each included tool.
Happy Coding!