joelbowen / ghost-starter

A ghost development structure that is flexible for varying use-cases. Clone to start a new project. (WIP)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ghost Starter: Developer edition (WIP)

A sensible structures for developing on top of the Ghost blogging platform.

  • Your own Express instance and routes
  • All of the ghost features (stable-branch, currently 0.11.7)
  • Simple ghost upgrades using package manager
  • Scalability through database externalization (PostgreSQL)
  • More coming soon...

Getting Started

$ npm install
$ npm run dev

Runs the express server with watch tasks.

npm start Runs without a task runner.


Configuration

Content

The content directory has been changed to ghost-content for clarity. The config.paths.contentPath value has been updated to reflect this move.

COMING SOON: S3 bucket configuration for all media files

Database

The configuration uses PostgreSQL by default.

For Development
You can run the following to create the appropriate user and database from the psql CLI:

CREATE USER "dev" WITH CREATEDB;
CREATE DATABASE "ghost-dev" WITH OWNER = "dev";

COMING SOON: a local .env file to hold all of these configurations

For Production
Use environment variables:

  • host: process.env.POSTGRES_HOST
  • user: process.env.POSTGRES_USER
  • password: process.env.POSTGRES_PASSWORD
  • database: process.env.POSTGRES_DATABASE
  • port: process.env.POSTGRES_PORT

Additional questions? @JoelSocialized on twitter

About

A ghost development structure that is flexible for varying use-cases. Clone to start a new project. (WIP)


Languages

Language:JavaScript 100.0%