@faustroz/create-f0-app v0.1.1
Next.js Prisma Tailwind CSS Clerk Stack
This repository is a boilerplate for building web applications using Next.js with Prisma for database operations, Tailwind CSS for styling, and Clerk for authentication.
Features
- Next.js: Next.js is a React framework that enables functionality like server-side rendering and generating static websites for React based web applications.
- Prisma: Prisma is a modern database toolkit that makes database access and management easy with type-safe database access and migrations.
- Tailwind CSS: Tailwind CSS is a utility-first CSS framework that provides low-level utility classes to build custom designs without having to leave your HTML.
- Clerk: Clerk is an authentication and user management service that provides a seamless login and registration experience with minimal setup.
Getting Started
Prerequisites
Before you begin, ensure you have the following installed on your machine:
- Node.js (v14 or higher)
- npm or yarn
Installation
Clone this repository to your local machine:
npx @faustrozf0/create-f0-app
Navigate into the project directory:
cd your-repo
Install dependencies:
npm install # or yarn install
Create a
.env.local
file in the root directory and configure your environment variables:DATABASE_URL="your-database-url" CLERK_FRONTEND_API="your-clerk-frontend-api"
Run database migrations:
npx prisma migrate dev # or yarn prisma migrate dev
Start the development server:
npm run dev # or yarn dev
Open http://localhost:3000 in your browser to see the app.
Usage
Folder Structure
/app
: Contains Next.js pages for routing./components
: Contains React components./styles
: Contains global styles and Tailwind CSS configurations./prisma
: Contains Prisma schema and migrations./utils
: Contains utility functions.
Authentication with Clerk
This project is set up with Clerk for authentication. You can manage your authentication flows and settings in the Clerk Dashboard.
Database Operations with Prisma
Prisma is integrated into this project for database operations. You can define your data models in the Prisma schema and perform CRUD operations using Prisma Client.
Deployment
This project can be deployed to platforms like Vercel, Netlify, or Heroku. Ensure that you set up environment variables in your deployment environment similar to .env.local
.
Contributing
Contributions are welcome! Please feel free to open an issue or submit a pull request.
License
This project is licensed under the MIT License.
Feel free to customize this README according to your specific project needs!