Skip to content

jxnx888/nextjs-contentful-graphql-vercel-edges

Repository files navigation

This is a Next.js project bootstrapped with create-next-app. And the template project also integrated with Contentful, GraphQL, Vercel, GitHub, Unit Test with Jest, and E2E Test with Cypress. Using GitHub Actions build a CI/CD workflow (Unit Test => Deploy => E2E Test).

Getting Started

First, install all the dependence:

npm i

Before you run the development server, you have to add ENV to project:

CONTENTFUL_SPACE_ID, CONTENTFUL_DELIVERY_API_KEY,CONTENTFUL_PREVIEW_API_TOKEN,VERCEL_TOKEN,GH_TOKEN(GitHub Token), VERCEL_ORG_ID, VERCEL_PROJECT_ID and VERCEL_PREVIEW

Then, run the development server:

npm run dev

Open http://localhost:3000 with your browser to see the result.

GitHub Actions

.github/workflows/preview.yml will deploy the project to vercel preview once you push your changes to develop branch. .github/workflows/preview.yml will deploy the project to vercel production once you push your changes to main branch.

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published