NextJS Template configured for pure client-side application (AKA export mode), GitHub Pages deployment, and React-Bootstrap/Bootstrap 5.3 styling.
Press the "Use This Template" button and create your own repository.
Invoke create-next-app:
npx create-next-app@latest -e https://github.com/Shaumik-Ashraf/nextjs-bootstrap-static-pages
Setup a new GitHub repository (required for GitHub Pages):
git init
git add --all
git commit -m "init commit"
git remote add origin [new-repository-url]
git push --force -u origin main
- NodeJS v22.11.0 (may work with other versions)
- npm v11.10.0 or greater
This app is configured to not install any packages released in the last 30 days for
supply chain security. If you have different needs, edit .npmrc.
-
Open your command line and run
npm install -
Run
npm run devto start the development server -
Open http://localhost:3000 to view the live app
-
Go to your repository Settings -> Pages and set Source to
GitHub Actions. -
Allow a few minutes to replicate, and the site will become available.
You can get more guidance at GitHub's documentation.
- First, compile this app into static HTML, CSS, and JavaScript:
npm run build
The final output will be in the out/ folder. The build process is powered by NextJS'
export mode.
-
Serve the contents in
out/with a production-grade file server such as NGINX or Apache. -
Acquire a domain, configure the DNS, and setup SSL certification. Consult your hosting service or web server documentation for how do this.
This app also comes with an npm start command which will run a web server for you,
however you should not use it for production since it cannot handle
SSL, rate limiting, or other critical features.
- NextJS 16 This app uses Pages mode
- React-Bootstrap
- Bootstrap 5
- ReactJS 19
- Playwright
This template comes with bootstrap themes you can easily swap. The default theme is
Brite and you can change themes by loading
its corresponding bootstrap CSS file in styles/globals.css. For example to use the
solar theme:
// styles/globals.css
@import "../themes/solar/bootstrap.min.css";Themes are provided by bootswatch. Any theme should work.
You can also add Sass support to NextJS and customize bootstrap directly.
This is the default Bootstrap theme.
This template comes with Playwright for end-to-end testing. Here is a quick command reference:
| : command | : purpose |
|---|---|
npm test |
Run e2e tests |
npx playwright install-deps |
Install browser binaries |
npx playwright show-report |
Show last test run HTML report |
npx playwright test --ui |
Launch interactive testing GUI |
npx playwright codegen |
Record a browser session to generate test code |
Agentic development (with claude code, opencode, etc.) is very new and constantly changing
"best practices." Nonetheless here are a few recommendations:
-
Upon first opening your agent, run the
/initskill to create a common AGENTS.md (or CLAUDE.md, etc.) file to save time and tokens on code exploration. If you have opinions and experience, I recommend you manually review it and add your own tips or guardrails./initmust also be re-run regularly to stay updated on your codebase's state. -
For each task, enter
/planmode first and give it feedback meticulously. You should use the/grill-meskill here. After approving and implementing the plan, review thegit diff(or put up a draft pull request) and review the code again. With the surplus of AI generated code and slop, code review and quality assurance is more important than ever. -
If you encounter bugs: give the agent visual browser access with the
/playwright-cliskill. Writing high-impact integration tests and doing test driven development (/tdd) improves the chance and quality of agent success.





