Skip to content

Next.js boilerplate/starter with GraphQL, Apollo Client and Styled-Components

Notifications You must be signed in to change notification settings

ijsto/igraphql-nextjs

Repository files navigation

Themed Next.js Starter app with Styled-Components

github follow ijs code style: prettier

This is a free Next.js starter project with dynamic layouts by iJS.to.

This project features the following:

  • Next.js app with dynamic layouts handled by components in layouts/ folder.

  • pre-configured to work with Styled Components />

  • custom _app.js file to support the layouts component

  • dynamic and static page examples

  • basic theming with Styled Components />

You can see a live demo of this repo at igraphql-nextjs.now.sh

About

This is a Next.js starter project with dynamic layouts.

The purpose is to have different layouts for different parts of your website. For example you may want to display a different layout for user dashboard, single blog post and blog post lists - we'll call them SingleBookLayout instead of SingleBlogPost, because why not. ¯\_(ツ)_/¯

This example has been prepared to core 2 cases - main layout and single blog post.

Get Started (3 minutes)

  1. Clone the the starter repo

git clone https://github.com/ijsto/igraphql-nextjs.git

  1. Enter the directory

cd igraphql-nextjs

  1. Install project dependencies

npm install or npm i

To run the project locally:

npm run dev

Starter project is live at: http://localhost:3000

The starter is now ready - have fun!

Contributing

All contributions and/or feature requests are most welcome!

iJS.to

About

Next.js boilerplate/starter with GraphQL, Apollo Client and Styled-Components

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published