Giter VIP home page Giter VIP logo

nextjs-blog's Introduction

Next.js × microCMS で JAMStack ブログ制作 🦖

アーキテクチャ図

アーキテクチャ図

機能

  • ブログ機能

    • 記事一覧ぺージ
    • カテゴリ別記事一覧ぺージ
    • 記事検索フォーム
    • 画面プレビュー(vercel と連動)
    • 記事詳細ページ
    • コメント機能(Firestore)
    • OGP 自動生成機能
    • 目次機能
  • プロフィールページ

  • アプリ倉庫


アプリイメージ 🙌

アプリイメージ

microCMS API スキーマ

ID 表示名 種類 必須
title タイトル テキストフィールド
created_at 作成日時 日時
updated_at 更新日時 日時 ×
toc_visible 目次 真偽値 ×
eyecatch アイキャッチ(絵文字) 画像
category カテゴリ 繰り返し(2 件)のフィールド*1
content 内容 リッチエディタ
description ディスクリプション テキストエリア ×

*1: カスタムフィールド

ID 表示名 種類 必須
richEditor リッチエディタ リッチエディタ ×
html HTML テキストエリア ×

Cloud Firestore DB

データモデル データ名 タイプ
collection 投稿記事ID -
document 自動ID -
data date timestamp
name string
text string

環境変数

# microCMS
#microCMS: コンテンツ(API) > APIプレビュー
NEXT_PUBLIC_MICROCMS_ACCESS_KEY={your-serviceDomain}
NEXT_PUBLIC_MICROCMS_API_KEY={your-apiKey}
NEXT_PUBLIC_MICROCMS_OGP_ARTICLE={microCMS-storage} *自動生成(記事ページ) | 任意の画像アップロード要
NEXT_PUBLIC_MICROCMS_OGP_BASE={microCMS-storage} *ブログ以外のOGP画像 | 任意の画像アップロード要

# Firebase
#Firebase: プロジェクトの設定 > 全般 > マイアプリ 参照
NEXT_PUBLIC_FIREBASE_API_KEY={your-apiKey}
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN={your-authDomain}
NEXT_PUBLIC_FIREBASE_PROJECT_ID={your-projectId}
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET={your-storageBucket}
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID={your-messagingSenderId}
NEXT_PUBLIC_FIREBASE_APP_ID={your-appId}
NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID={your-measurementId}

# Hosting
#Hosting: ホスティング先のURL
NEXT_PUBLIC_HOST={your-url}

環境構築

# clone してディレクトリ移動
git clone https://github.com/wadeen/nextjs-blog.git

# nextjs-blog に移動
cd nextjs-blog

# パッケージのインストール
npm install

# FirebaseコンソールからFirebaseアプリを作成

# microCMS管理画面から新規サービスを作成

# "環境変数" を.envファイルに適宜貼り付け

開発期間

開発期間:1 ヶ月程度(適宜アップデート)
工数:12 人日

開発者

わでぃん

公開 URL

https://wadeen.net/

nextjs-blog's People

Contributors

wadeen avatar

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.