minikit-limpo-template
Version:
A minimal Next.js app starter template with WorldCoin MiniKit authentication integration
32 lines (25 loc) ⢠878 B
JavaScript
// This script runs after the template is created to help set up the project
const fs = require('fs');
const path = require('path');
const { execSync } = require('child_process');
console.log('š Setting up your MiniKit starter project...');
// Create .env.local file if it doesn't exist
const envPath = path.join(process.cwd(), '.env.local');
if (!fs.existsSync(envPath)) {
console.log('š Creating .env.local file...');
fs.writeFileSync(
envPath,
'NEXT_PUBLIC_APP_ID=app_staging_...\n\n# Replace with your World ID App ID from https://developer.worldcoin.org/'
);
console.log('ā
Created .env.local file');
}
// Installation complete
console.log(`
⨠MiniKit starter template setup complete! āØ
Next steps:
1. Edit .env.local and add your World ID App ID
2. Start your development server:
npm run dev
Happy coding! š
`);