Skip to content

Nextjs App Boilerplate for all Nextjs projects at Commutatus

Notifications You must be signed in to change notification settings

commutatus/cm-nextjs-boilerplate

Repository files navigation

Project Name

First time setup and deployment

These steps need to be performed only once after creating the repository from the template

Secrets

  1. Run npm run create-encryption-keys. This will generate the .production.key, .staging.key, and .development.key encryption keys
  2. Save all the *.key files in a secure location

Amplify

  1. Create an environment variable ENV. This can have only one of these value: staging or prod
  2. Create an environment variable DECRYPTION_KEY_PROD with the same value as the prod decryption key
  3. Create DECRYPTION_KEY_STAGING from the staging decryption key

General

  1. Update project name in README.md, package.json, and in src/app/layout.tsx
  2. Update this Readme with information relevant to the project. Example of a good readme
  3. Remove the First time setup and deployment section from the Readme

Development prerequisites

  1. nvm use to set the correct node version
  2. npm run install to install the dependencies
  3. Get access to the decryption key file from your team members. Paste these files in the root of the repository

Development flow

  1. nvm use to set the correct node version
  2. npm run dev:staging or npm run dev:prod

Encryption/Decryption flow

Example to update staging env:

  1. Run npm run decrypt-staging-env
  2. Edit .env.local
  3. Run npm run encrypt-staging-env

About

Nextjs App Boilerplate for all Nextjs projects at Commutatus

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published