Quick start template for NextJS application
This repository has been configured for upcoming new App Router by default (Documentation). Feel free to change back to regular page routing if you want, no deployment process changed.
- Install Node LTS
- Install pnpm package manager by running
npm i -g pnpm
command - (Optionally) Docker for container image debugging
- Create a repository by using this repository as a template
- Install dependencies with
pnpm i
command - Develop anything with
pnpm dev
!
- Create project in Deploys.app console. This project ID will be
DEPLOYS_NAME
secrets - Create deployment credentials
- Create service account at Service Accounts > Create. You will get service account email address which will be
DEPLOYS_AUTH_USER
secrets - Click into service account email and click Create key button. You will get deployment key which will be
DEPLOYS_AUTH_PASS
secrets - Create a role at Roles > Create with
deployment.*
permissions - Create user at Users > Add with service account email, and role that created earlier
- Create service account at Service Accounts > Create. You will get service account email address which will be
- Add those secrets into GitHub via Settings > Secrets and variables > Actions
- Push a commit to trigger deployment or mannualy trigger it yourself in Actions tab
- Make sure Docker service as active
- Build image locally with
docker build -t quick-next .
- Run production image with
docker run --name next-debug -p 3000:3000 quick-next
- Deployment should be active locally at http://localhost:3000