Access the following URL to see the app running: https://ts-nextjs-app-virtual-card-generator.vercel.app
Use this URL to see a valid virtual card page: https://ts-nextjs-app-virtual-card-generator.vercel.app/Daniel?github=https://github.com/danielfcollier&linkedin=https://linkedin.com/in/danielfcollier
npm install
npm run build
npm run dev -- --port 3000
npm run dev -- --port 3000
npm start
docker build -t virtual-card-generator .
docker run -p 3000:3000 virtual-card-generator
npx jest --updateSnapshot
npm run test:ci
Tests are configured to run on multiple OS and Node.js versions to make sure the app is compatible across many platforms.
act -j tests
If tests are passing, the CI with GitHub Actions pushes the changes to a production branch (prod
), which is linked to a CD with Vercel.
Set up the file .env.development
to configure local environment variables. And, use the file .env.production
to set up production variables.
npx create-next-app --example with-jest ts-nextjs-app-virtual-card-generator
https://github.com/vercel/next.js/tree/canary/examples/with-jest
https://github.com/vercel/next.js/tree/canary/examples/with-docker
https://vercel.com/docs/concepts/projects/environment-variables