Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Boilerplate for a Next.js + Bootstrap project with TypeScript, Yarn, and Terraform, ready for AWS serverless deployment.
Next.js + Bootstrap Boilerplate is a code boilerplate that scaffolds a Next.js application with Bootstrap styling, TypeScript, Yarn, and Terraform-based deployment to AWS serverless infrastructure.
The Next.js + Bootstrap Boilerplate is a starter repository automatically generated by the Goldstack template of the same name. It produces a working Next.js project in the packages/app-nextjs-bootstrap folder, complete with TypeScript project references, Yarn workspace configuration, and Terraform deployment files. You supply AWS credentials and two domain settings (hosted zone domain and website domain); the output is a deployable website hosted on low-cost, highly scalable AWS serverless infrastructure. The project is maintained by the Goldstack open-source project and lives on GitHub.
The README documents a nine-step onboarding flow: fork and clone the repository, install Node v20+, Yarn v1.22.5+, Docker v20+, Terraform CLI, and AWS CLI v2, run yarn to install dependencies, run yarn build to verify TypeScript project references, configure VSCode with the recommended ESLint, Prettier, and ZipFS extensions, initialise the workspace TypeScript version, run yarn watch for local development, update the deployment configuration, and finally deploy with yarn infra up prod.
You need Node v20+, Yarn v1.22.5+, Docker v20+, Terraform CLI, and AWS CLI v2. The README asks you to confirm these with node -v, yarn -v, and docker --version before continuing.
Configure an AWS API key user in /config/infra/config.json, then edit packages/app-nextjs-bootstrap/goldstack.json to set hostedZoneDomain and websiteDomain and delete the tfStateKey value. Run yarn infra up prod from the package folder to deploy.
Yes. The README states you are free to fork the repository and modify it for your needs, and it links to the Goldstack GitHub for questions, ideas, and contributions.
The main application lives in packages/app-nextjs-bootstrap. Run yarn watch inside that folder to start the local development server.
Goldstack is a project builder that generates boilerplates for serverless web projects. This repository was automatically generated using the Next.js + Bootstrap template version 0.1.0.
