This repo contains the code for my online web portfolio. It is built using Next.js (v16).
- Ensure you are running Node
v25.4.0. If you have NVM installed, you can simply runnvm use - Copy
.env.SAMPLEto.envand configure your environment variables
- Run
npm install
- Run
npm run devto start the dev server. - Make any required code changes. The dev server watches for changes and rebuilds in real-time.
- Create a new branch from
developfollowing the Git Flow branching convention - Make any code changes following Next.js best practices.
- Add any new unit tests
- Create a pull request from your branch back into
develop - Once the changes have been approved, merge the pull request
- The
developpipeline will trigger, deploying to the DigitalOcean projectportfolio-dev
- Create a new release branch from develop in the format
release/vx.x.x(Use semantic versioning for the new release version) - Bump the package.json version to the new release version
- Create a pull request from your release branch into
main - Once the changes have been approved, merge the pull request as a squash merge
- The
productionpipeline will trigger, deploying to the DigitalOcean projectportfolio - Lastly, create a pull request from
mainback intodevelopand merge.
dev– start Next.js dev serverbuild– full production build (next build + image optimization + PurgeCSS + sitemap generation)start– serve the static export from theoutdirectoryanalyze– analyzes application bundle with @next/bundle-analyzer
test– full test suite: prettier:check + lint + typechecktypecheck– checks TypeScript typeslint– runs ESLint + Stylelintprettier:check– checks files with Prettier
prettier:write– formats all files with Prettierlint:fix– auto-fix ESLint + Stylelint issues