Skip to content

mantaroh/spearly-astro-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Group 1

Spearly meets Astro 🚀

このレポジトリは、Spearly CMS のコンテンツを Astro を使って静的サイトジェネレートするプロジェクトです。

このプロジェクトをフォークしてご利用ください。

利用方法

Spearly CMS コンテンツの作成

https://cms.spearly.com にアクセスしてアカウントを登録後に、コンテンツを作成してください。

このボイラープレートが想定しているコンテンツは以下の通りです。

フィールド名 フィールドタイプ
title テキスト
date カレンダー
description テキスト
image 画像
body リッチテキスト

Spearly CMS API キーの設定

https://cms.spearly.com のチーム設定にある API キーを取得して、.env ファイルに設定します。

設定例:

SPEARLY_API_KEY=ABCDEFGHIJKLMNOPQRSTU

ビルド方法

$npm install
$npm run build

dist ディレクトリに静的サイトが生成されます

テスト実行

$npm install
$npm run dev

http://localhost:3000 にアクセスするとテスト環境での実行が出来ます。

デプロイ

Netlify

About

Spearly CMS + astro.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published