Installation

  1. Clone the repository:
bash
git clone https://github.com/wzdzzz/osmanthus-next.js
cd osmanthus
  1. Install dependencies:
bash
yarn install
  1. Set up environment variables:
bash
cp .env.example .env.local
  1. Generate necessary files:
bash
yarn run generate
  1. Run the development server:
bash
yarn run dev

Your project should now be running at http://localhost:3000.

Configuration

Authentication

This template uses Next-Auth for authentication. Configure your authentication provider in src/config/auth.config.ts.

Multi-language Support

Next-Intl is used for multi-language support. Add your language files in the src/config/dictionaries directory.

Theme Configuration

Customize your themes using Next-Themes in src/app/globals.css.

State Management

Global state is managed by Zustand. Define your store in the src/store directory.

Database Integration

Database integration is done using Prisma. Configure your database connection in prisma/schema.prisma.

© 2024 osmanthus. The source code is available on GItHub