Skip to content

maurim96/nextjs-clerk-shadcn-scaffold

Repository files navigation

Next JS Scaffold App

Welcome to the official Next JS Scaffold repository. This project is designed to kickstart your web app development with Next.js project bootstrapped with create-next-app, providing a robust framework that integrates the best practices and tools needed to build high-quality web applications efficiently.

Purpose and Benefits

This scaffold aims to reduce the initial setup time and complexity by providing a ready-to-use Next JS application structure. It leverages the power of Next JS, GraphQL, Clerk for authentication, and more, enabling developers to focus on building unique features right from the start.

Powered by

Clerk logo
Next JS
Clerk logo
Clerk
Shadcn logo
Shadcn
Apollo GraphQL logo
Apollo Client
GraphQL logo
GraphQL
GraphQL logo
GraphQL CodeGen

Major Dependencies

  • Next JS for the web app framework.
  • Apollo Client for GraphQL integration.
  • Clerk for secure authentication.
  • Tailwind CSS for styling.

What's inside

  • ./src: The main directory of application.
    • /graphql-types: Provides GraphQL types for the applications.
    • /app/: Core functionality of the application.
    • /lib/: Library with functions and helpers.
    • /components/: Reusable components.
    • /hooks/: Custom React hooks.
  • tailwind.config.ts: Tailwind CSS configuration.

Getting Started

Prerequisites

  • Volta (ideally)
  • Node.js (18.17.0)

Repository Setup

Clone the repository and install dependencies:

git clone git@github.com:maurim96/nextjs-clerk-shadcn-scaffold.git
cd nextjs-clerk-shadcn-scaffold
npm install

Generating GraphQL Code

Prerequisities

Environment Variables

To manage environment variables, consider using dotenv or a similar package. Create .env files for different environments (.env.development, .env.production, etc.). Remember to configure the necessary variables for API endpoints, feature flags, etc., without exposing sensitive information.

Utilities

Features

  • Intuitive UI: Utilizing Tailwind CSS for responsive and aesthetic design.
  • GraphQL Integration: Efficient data management.
  • Custom Hooks: Enhance functionality and reusability.

Develop

You'll need .env. Ask someone on the team.

To develop all apps and packages, first install the dependencies by running:

npm install

Run dev version

npm run dev

Open http://localhost:3000 with your browser to see the result (check port in case you're using also the NestJs API Scaffold).

You can start editing the page by modifying src/app/page.tsx. The page auto-updates as you edit the file.

This project uses next/font to automatically optimize and load Inter, a custom Google Font.

Contribution Guidelines

Contributions are welcome! Please follow these steps to contribute:

  1. Fork the repository.
  2. Create a new branch for your feature or fix.
  3. Commit your changes with clear, descriptive messages.
  4. Push your changes and submit a pull request.

Please adhere to the coding standards and commit message guidelines provided in the repository.

Troubleshooting and FAQ

Encounter an issue? Check out the FAQ or troubleshooting section in our documentation for common problems and solutions. If you still need help, please file an issue on GitHub with a detailed description of the problem.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

License

This project is UNLICENSED. Feel free to use it according to the terms of the license.

About

NextJs + Clerk + Graphql - Scaffold

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published