This is a repository for Build a SaaS AI Platform with Next.js 13, React, Tailwind, Prisma, Stripe.
Node version 18.x.x Yarn version 1.22.x
Certainly, if you're working on a Node.js project and you have a development script, such as yarn dev
, that you typically use to run your application during development, you can include that step in your workflow as well. Here's the updated order of commands:
Clone this repository:
git clone [email protected]:rsshonjoydas/lms-platform.git
Environment Variables Setup:
To rename the .env.example
file to .env
and add your environment-specific configuration, you can use the following command in a Unix-like shell (such as Linux or macOS):
mv .env.example .env
This command renames the .env.example
file to .env
.
After renaming the file, you can open the .env
file using a text editor and add your environment-specific configuration variables and their values. For example:
DATABASE_URL=your_database_url_here
API_KEY=your_api_key_here
SECRET_KEY=your_secret_key_here
Replace "your_database_url_here"
, "your_api_key_here"
, and "your_secret_key_here"
with your actual configuration values. The .env
file is commonly used to store sensitive or environment-specific configuration variables for your application.
Install packages
yarn install
Prisma Setup:
Generate Prisma Client Code:
npx prisma generate
Push Database Changes:
npx prisma db push
Launch Prisma Studio: optional
npx prisma studio
Your Prisma
database is accessible locally at the following address: http://localhost:5555
Seed the Database:
node ./scripts/seed.ts
Run Your Application in Development Mode:
yarn dev
Your project
is accessible locally at the following address: http://localhost:3000
Install Next JS
yarn create next-app --typescript --tailwind --eslint
Engine Locking configuration optional
Create .npmrc
file and add below the code
engine-strict=true
Create .nvmrc
file and add below the code
lts/fermium
Add this configuration to your project package.json
"engines": {
"node": ">=18.0.0",
"yarn": ">=1.22.0",
"npm": "please-use-yarn"
}
Visual Studio Settings configuration optional
Airbnb style guide setup
Git Hooks for Husky
Shadcn Ui Setup
npx shadcn-ui@latest init
optional
npx shadcn-ui@latest add button
optional
npx shadcn-ui@latest add button --overwrite
Shonjoy Das - [email protected]