Minimal Next.js app for the credX frontend.
- Node.js 18+ or a compatible runtime
- A package manager: npm / pnpm / yarn or Bun (this repo contains a
bun.lockso Bun is supported)
Install dependencies (choose one):
# npm
npm install
# or pnpm
pnpm install
# or yarn
yarn install
# or bun
bun installRun the development server:
npm run dev
# or
pnpm dev
# or
yarn dev
# or
bun run devOpen http://localhost:3000 in your browser.
Build for production:
npm run buildStart the production server (after build):
npm startRun the linter configured for the project:
npm run lintIf you want to run TypeScript checks:
npx tsc --noEmitThis project doesn't require any specific environment variables by default. If you add secrets or API keys, create a .env.local file in the project root and add them there. Example:
# .env.local
NEXT_PUBLIC_API_URL=https://api.example.com- Port already in use: specify a port with
PORT=3001 npm run devor free the port. - If install fails, try switching package manager (e.g., use npm if bun fails) or delete
node_modules/lockfile and reinstall. - If Next build errors reference missing types, ensure devDependencies are installed and run
npx tscfor more details.
Scripts available from package.json:
dev— start dev server (Next.js with Turbopack)build— build for productionstart— start production serverlint— run ESLint
- This project uses Next.js and Tailwind. If you change Tailwind configuration, restart the dev server.
- If you prefer Bun (recommended when
bun.lockis present), usebun installandbun run <script>.
If you want, I can add more sections (testing, deployment steps, CI examples). Which would you like next?