Giter VIP home page Giter VIP logo

nextjs-microcms-blog-handson's Introduction

Next.js, Chakra UI, microCMS Blog

This project is a sample blog application built with Next.js and Chakra UI. It utilizes microCMS as the content management system for managing blog content. The combination of server-side rendering (SSR) and client-side rendering (CSR) in Next.js ensures excellent SEO performance and fast-loading web pages.

Features

  • Server-side rendering (SSR) and client-side rendering (CSR) combination
  • Responsive design and accessibility with Chakra UI components
  • Blog content management using microCMS

Demo

My personal blog named Zubora Code is using the source code from this repository.

Blog

I will provide detailed explanations about the source code of this repository in the following blog.

English: https://zubora-code.net/en/nextjs_micorcms_blog

Japanese: https://zubora-code.net/ja/nextjs_micorcms_blog

Installation and Usage

  1. Clone the repository
git clone [email protected]:tkugimot/nextjs-microcms-blog-handson.git
  1. Navigate to the project directory
cd nextjs-microcms-blog-handson
  1. Install dependencies
npm install
# or
yarn install
  1. Set up microCMS API key To fetch blog content, you'll need to set up a microCMS API key. Follow these steps to set the API key as an environment variable:

  2. Create a .env.local file in the project root. Set the API key in the following format:

MICRO_CMS_API_KEY=your_micro_cms_api_key
MICROCMS_SERVICE_DOMAIN=your_micro_cms_service
BASE_URL=http://localhost:3000
NEXT_PUBLIC_GA_ID=your_google_analytics_id

Off course, BASE_URL has to be your domain instead of localhost on production.

  1. Start the development server
npm run dev
# or
yarn dev
  1. Access the application in your browser
http://localhost:3000

License

This project is licensed under the MIT License.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.