These steps need to be performed only once after creating the repository from the template
- Run
npm run create-encryption-keys
. This will generate the.production.key
,.staging.key
, and.development.key
encryption keys - Save all the
*.key
files in a secure location
- Create an environment variable
ENV
. This can have only one of these value:staging
orprod
- Create an environment variable
DECRYPTION_KEY_PROD
with the same value as the prod decryption key - Create
DECRYPTION_KEY_STAGING
from the staging decryption key
- Update project name in
README.md
,package.json
, and insrc/app/layout.tsx
- Update this Readme with information relevant to the project. Example of a good readme
- Remove the
First time setup and deployment
section from the Readme
nvm use
to set the correct node versionnpm run install
to install the dependencies- Get access to the decryption key file from your team members. Paste these files in the root of the repository
nvm use
to set the correct node versionnpm run dev:staging
ornpm run dev:prod
Example to update staging env:
- Run
npm run decrypt-staging-env
- Edit
.env.local
- Run
npm run encrypt-staging-env