npm install
This will install all required dependencies including:
Create a .env.local file in the root directory:
# Database
DATABASE_URL=postgresql://user:password@localhost:5432/dbname
# Authentication
JWT_SECRET=your-super-secret-jwt-key-change-this
JWT_EXPIRES_IN=7d
# Email (Nodemailer)
EMAIL_HOST=smtp.gmail.com
EMAIL_PORT=587
EMAIL_USER=your-email@gmail.com
EMAIL_PASSWORD=your-app-password
# Redis (Optional)
REDIS_URL=redis://localhost:6379
# Sentry (Optional)
SENTRY_DSN=your-sentry-dsn
# Push Notifications (Optional)
NEXT_PUBLIC_VAPID_PUBLIC_KEY=your-vapid-public-key
VAPID_PRIVATE_KEY=your-vapid-private-key
# Site Configuration
NEXT_PUBLIC_SITE_URL=http://localhost:3000
NEXT_PUBLIC_SITE_NAME=Limitless Infotech Solution
# Run database setup script
npm run db:setup
# Create admin user
npm run db:create-admin
npm run dev
Open http://localhost:3000 in your browser.
npx playwright install
# Unit tests (watch mode)
npm test
# Unit tests (CI mode with coverage)
npm run test:ci
# E2E tests
npm run test:e2e
# E2E tests with UI
npm run test:e2e:ui
Using Docker:
docker run -d -p 6379:6379 redis:alpine
Using Homebrew (Mac):
brew install redis
brew services start redis
Using apt (Ubuntu):
sudo apt install redis-server
sudo systemctl start redis
Using Docker:
docker run -d \
-p 5432:5432 \
-e POSTGRES_PASSWORD=password \
-e POSTGRES_DB=limitless \
postgres:15-alpine
Using Homebrew (Mac):
brew install postgresql@15
brew services start postgresql@15
npm i -g vercel
vercel
.env.localFROM node:18-alpine
WORKDIR /app
COPY package*.json ./
RUN npm ci --only=production
COPY . .
RUN npm run build
EXPOSE 3000
CMD ["npm", "start"]
docker build -t limitless-infotech .
docker run -p 3000:3000 limitless-infotech
node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
npx web-push generate-vapid-keys
.env.local:
SENTRY_DSN=your-sentry-dsn
The platform includes built-in analytics. No additional setup required!
mkdir -p locales
touch locales/es.json
{
"common": {
"welcome": "Bienvenido",
"login": "Iniciar sesión"
}
}
import { i18n } from '@/lib/i18n'
await i18n.setLocale('es')
const text = i18n.t('common.welcome')
The CI/CD pipeline is already configured in .github/workflows/ci-cd.yml
Required GitHub Secrets:
VERCEL_TOKEN - Get from Vercel account settingsVERCEL_ORG_ID - Get from Vercel project settingsVERCEL_PROJECT_ID - Get from Vercel project settingsSNYK_TOKEN - (Optional) Get from Snyk.ioTo add secrets:
The service worker is already configured in public/sw.js
The manifest is already configured in public/manifest.json
npm run buildnpm start# Kill process on port 3000
npx kill-port 3000
# Or use different port
PORT=3001 npm run dev
.env.localpsql -lredis-cli ping.env.local# Clear Next.js cache
rm -rf .next
# Clear node_modules and reinstall
rm -rf node_modules package-lock.json
npm install
# Rebuild
npm run build
If you encounter any issues:
After installation, verify everything works:
npm run dev)npm run test:ci)npm run test:e2e)npm run build)npm start)Installation Complete! 🎉
Your platform is now ready for development or deployment.
Next Steps:
Built with ❤️ by Limitless Infotech Solution Pvt Ltd