This is an application similar to LinkTree, builded with Next.js and powered by GraphCMS.
- Create a new GraphCMS project
- Download manually this repo:
npx degit adeonir/graphcms-link-tree graphcms-link-tree
- Add .env:
cp .env.example .env
- Provide values for
GRAPHCMS_AUTH_TOKEN
andGRAPHCMS_ENDPOINT
- Install dependencies:
yarn
- Run the migrations:
yarn migrations
At this point, you should see 4 models in the GraphCMS Schema dashboard: Creator, Link, Page and Video
- On GraphCMS Dashboard, create new content. Each page can have one creator and multiple links or videos
- Run the server:
yarn dev
- Open the browser and go to http://localhost:3000/slug, where slug is the text you provided on the Page model
Made with