create-sopi-app
v1.0.8
Published
π A command-line tool to scaffold a Next.js 14 project pre-configured with TypeScript and ShadCN, designed to help you set up your projects quickly. It also offers an optional Prisma ORM integration for data modeling.
Downloads
495
Readme
create-sopi-app
π A command-line tool to scaffold a Next.js 14 project pre-configured with TypeScript and ShadCN, designed to help you set up your projects quickly. It also offers an optional Prisma ORM integration for data modeling.
β¨ Features
- Next.js 14 with TypeScript pre-configured
- ShadCN styles and components pre-installed for UI consistency
- Optional Prisma ORM setup, including
.env.example
and Prisma schema - Zero config: All dependencies installed and configurations handled for you
π Prerequisites
- Node.js v14 or higher
- npm v6 or higher (comes with Node.js)
π οΈ Installation
You can run create-sopi-app
directly with npx:
npx create-sopi-app
π§βπ» Usage
Running npx create-sopi-app
will guide you through a few setup questions and generate a new project directory based on your responses.
Run the CLI:
npx create-sopi-app
Answer Prompts:
- Project name: Specify the name for your new project.
- Prisma ORM: Choose if you want to add Prisma ORM for database management.
Start Developing: Navigate to the project folder and run the development server:
cd <your-project-name> npm run dev
π Project Structure
Your generated project will have the following structure:
<project-name>/
βββ .env.example # Environment variable template
βββ prisma/ # Prisma directory (if selected)
β βββ schema.prisma # Basic Prisma schema
βββ public/ # Public assets
βββ src/ # Main project files
β βββ app/ # Next.js papp directory
β βββ components/ui/ # ShadCN components
βββ package.json
βββ tsconfig.json # TypeScript configuration
Example Output
$ npx create-sopi-app
Creating your Sopi Next.js app...
? Enter your project name: my-awesome-app
? Would you like to add Prisma ORM to the project? (Y/n) Y
Adding Prisma ORM...
Installing dependencies...
Setup complete! Run your app with the following commands:
cd my-awesome-app
npm run dev
π€ Contributing
Contributions are welcome! Follow the steps below to set up the development environment:
Clone the repository:
git clone https://github.com/your-username/create-sopi-app.git
Install dependencies:
npm install
Test locally:
node create-sopi-app.js
π License
This project is licensed under the MIT License. See the LICENSE file for more details.