From the course: Build a Lightweight Full-Stack Headless CMS Using Next.js, Contentful, and GraphQL
Unlock the full course today
Join today to access over 24,600 courses taught by industry experts.
Set up the Next.js app and deploying to Vercel - GraphQL Tutorial
From the course: Build a Lightweight Full-Stack Headless CMS Using Next.js, Contentful, and GraphQL
Set up the Next.js app and deploying to Vercel
- [Instructor] Finally for some actual code. So let's go ahead and set up our code base. The files that you have received already that you have access to is basically going to be the starter code. But let's say you didn't have the starter code and you want to do this locally outside of Codespaces, then this is how you would do it, right? So you would create a directory called cms-contentful-app. It could be anything. Then you step into that directory and then run this command there. Make sure that you include this period here, because if you don't, it's not going to clone the files correctly in the right space. So just make sure that you include that period at the end. And then once it does that, it's basically going to give you everything that's in this devcontainer folder except for this file and this file because I made those. So once you have all of those, now we're going to have to go navigate back to Contentful to get your SPACE_ID, as well as your CONTENTFUL_MANAGEMENT_TOKEN…