npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

generator-ramblingcms-on-keystonejs

v1.0.0-beta.2

Published

A RamblingCMS (Customized KeystoneJS Project) Generator for Yeoman

Downloads

3

Readme

RamblingCMS (A Customized KeystoneJS Project) Generator

KeystoneJS用のカスタムテンプレートである「RamblingCMS」のYeoman ジェネレーターです。

yo ramblinvgcms-on-keystonejsを実行することで、RamblingCMSプロジェクトが生成され、様々なSEO対策や支援機能を持つNode.jsベースのブログ向けCMSをすぐに構築することができます。

どのようなサイトにも共通して必要なSEO対策やコンテンツ作成支援機能(WordPressのショートコードに相当)が実装されており、サイト制作の工数が削減できるものと思います。

利用手順

ここではサンプルプロジェクトを構築してローカル環境で動作確認するまでの手順を示します。

利用手順の詳細について

カスタマイズにより追加された機能やSEO対策の内容、ブログをセットアップしてインターネットに公開するまでの手順等は、以下リンクにある作成者のブログをご覧下さい。

リンク先のブログサイトは本テンプレートを使って構築されています。

RamblingCMSの利用手順詳細: Rambling Blog

前提条件

ジェネレーターの実行、生成されたプロジェクトの実行には以下が必要となりますので、事前にインストールをお願いします。

  • Node.js >= 0.12
  • MongoDB >= 3.0
  • Yeoman

制約事項

KeystoneJSでは、複数のCSSプリプロセッサおよびテンプレートエンジンに対応していますが、RamblingCMSが対応しているのは以下のみとなります。

  • CSSプリプロセッサ:SASS
  • テンプレートエンジン:pug

ジェネレーターの入手

以下のコマンドでNPMリポジトリからYeomanジェネレーターをインストールできます。

npm install -g generator-ramblingcms-on-keystonejs`

デフォルト設定のプロジェクトを生成

以下のコマンド実行することで、デフォルト設定のプロジェクトが生成されます。

$ mkdir myproject
$ cd myproject
$ yo keystone auto

ジェネレーターの実行オプションについては、上述の作成者のブログをご覧下さい。

プロジェクトの起動&動作確認

以下の手順でプロジェクトを起動し、サンプルプロジェクトのサイトを確認できます。

  1. mongodbの起動
  2. node keystoneコマンドを実行
  3. ブラウザからhttp://localhost:3000へアクセス

利用しているKeystoneJSのバージョン

RamblingCMSは以下のバージョンのKeystoneJSをベースとしています。

利用にあたり

KeystoneJS同様、画像のアップロード、問い合わせのメール受信などの機能を利用するには、以下サービスのアカウントが必要となります。

これらの機能利用は必須ではありませんが、動作確認および小規模サイトの運営レベルであれば無料利用の範囲に収まると思いますので、ご利用を検討ください。

  • Cloudinary - Image serving and management in the cloud
  • Mailgun - Easy email integration

カスタマイズで追加されている機能

RamblingCMSでは、KeystoneJSのデフォルトテンプレートに対して、カスタマイズによって各種機能を追加しています。

カスタマイズは以下の4観点から実施しており、WordPressとの機能比較や、実際にKeystoneJSを使ってブログ運用する中で、管理人が不足していると感じた部分を対象としています。

  1. SEO対策
  2. コンテンツの制作支援
  3. デザイン支援
  4. セキュリティ向上

それぞれのカスタマイズについて、どのような理由で実施しているかを詳細に知りたい方は以下の記事をご覧下さい。

RamblingCMSの概要説明

ライセンス

MIT License. Copyright (c) 2018 rambling

The generator-ramblingcms-on-keystnejs was forked from generator-keystone of Jed Watson, which is subject to the same license.