Welcome to the Starter Kit! This project is built with Next.js, Shadcn UI, and Clerk authentication. It provides a robust foundation for building web applications with modern front-end technologies and secure authentication mechanisms.
To get started with this project, follow the instructions below.
Ensure you have the following installed:
- Node.js (v14.x or later)
- npm or yarn
Clone the repository:
git clone https://github.com/your-username/starter-kit.git
cd starter-kit
Install the dependencies:
npm install
# or
yarn install
Start the development server:
npm run dev
# or
yarn dev
Open your browser and navigate to http://localhost:3000
. You should see the application running.
Here's an overview of the project structure:
starter-kit/
├── public/ # Static assets
├── src/
│ ├── components/ # UI components
│ ├── actions/ # Next.js server actions
│ ├── app/ # fullstack web + api
│ ├── lib/ # Utility functions
│ ├── hooks/ # Custom React hooks
│ └── contexts/ # React contexts
│ └── icons/ # UI Icons
│ └── schemas/ # Form validation schemas
│ └── constants/ # App constants
│ └── middleware.ts # API middleware
├── .env.local # Environment variables
├── next.config.js # Next.js configuration
├── package.json # Project metadata and scripts
└── README.md # Project documentation
- Next.js: A React framework for production.
- Shadcn UI: A set of customizable UI components.
- Clerk Authentication: Secure and easy-to-use authentication for your application.
Create a .env.local
file in the root directory and add the following environment variables:
NEXT_PUBLIC_CLERK_FRONTEND_API=<your-clerk-frontend-api>
CLERK_API_KEY=<your-clerk-api-key>
Replace <your-clerk-frontend-api>
and <your-clerk-api-key>
with your actual Clerk credentials.
This starter kit uses Clerk for authentication. Clerk provides a seamless way to add user authentication to your application. For more details on how to use Clerk, refer to the Clerk documentation.
Shadcn UI components are used to build the user interface. These components are highly customizable and can be tailored to fit your design requirements. For more details, refer to the Shadcn UI documentation.
Custom React hooks are available in the src/hooks/
directory to help manage state and side effects in your application.
React contexts are used to manage global state, such as user authentication status. These contexts are located in the src/contexts/
directory.
We welcome contributions! To contribute, follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature/your-feature
). - Commit your changes (
git commit -am 'Add your feature'
). - Push to the branch (
git push origin feature/your-feature
). - Create a new Pull Request.
This project is licensed under the MIT License. See the LICENSE file for more information.
Thank you for using this starter kit! If you have any questions or feedback, please feel free to open an issue or contact the maintainers.