Get your app running quickly with this boilerplate. Letβs build that startup, FAST π
Once you're set, follow this tutorial to launch in 5 minutes!
Run these commands in your terminal:
git clone [link] [YOUR_APP_NAME]
cd [YOUR_APP_NAME]
npm install
git remote remove origin
npm run dev
Launch It requires Node 18.17 or greater. Check your version by typing node -v
.
Rename .env.example
to .env.local
:
mv .env.example .env.local
Visit http://localhost:3000 to see your site. Console errors may appear, but they're not critical.
/app
β Pages/app/api
β API calls/components
β React components/libs
β Helper functions/models
β Database models/messages
β Internationalization messagesconfig.js
Configure your app here, with detailed documentation for each key.
export const config = {
Β appName: "Launch It π",
Β appDescription: "You can customize your app description here.",
Β ...
}
.env
FileRename .env.example
to .env.local
. Update NEXTAUTH_SECRET
to a minimum of 15 characters. Hereβs an example setup:
NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_SECRET=
GOOGLE_ID=
GOOGLE_SECRET=
MONGODB_URI=
EMAIL_SERVER=
MAILGUN_API_KEY=
MAILGUN_SIGNING_KEY=
STRIPE_PUBLIC_KEY=
STRIPE_SECRET_KEY=
STRIPE_WEBHOOK_SECRET=