0.1.1 • Published 4 months ago

@faustroz/create-f0-app v0.1.1

Weekly downloads
-
License
-
Repository
-
Last release
4 months ago

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

  1. Clone this repository to your local machine:

    npx @faustrozf0/create-f0-app
  2. Navigate into the project directory:

    cd your-repo
  3. Install dependencies:

    npm install
    # or
    yarn install
  4. 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"
  5. Run database migrations:

    npx prisma migrate dev
    # or
    yarn prisma migrate dev
  6. Start the development server:

    npm run dev
    # or
    yarn dev
  7. 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!

0.1.1

4 months ago

0.1.0

4 months ago