Ghost/core
Adam Howard 00199cee67 Refactor the initial boot of Ghost, allowing Ghost updates to keep current configuration intact.
Extracts all express-server-related code in index.js to core/server.js, leaving index.js purely for booting up Ghost's core components in a sensible order.

Aside from the project's tidiness, this means that we can perform asynchronous configuration loading/checks before requiring any modules that read the config.
2013-09-12 15:38:11 +01:00
..
client Clean up config (drop 'env') 2013-09-12 15:25:58 +01:00
server Clean up config (drop 'env') 2013-09-12 15:25:58 +01:00
shared Temporarily removed the Dashboard and all references 2013-09-11 15:38:09 +01:00
test Clean up config (drop 'env') 2013-09-12 15:25:58 +01:00
config-loader.js Refactor the initial boot of Ghost, allowing Ghost updates to keep current configuration intact. 2013-09-12 15:38:11 +01:00
ghost.js Refactor the initial boot of Ghost, allowing Ghost updates to keep current configuration intact. 2013-09-12 15:38:11 +01:00
README.md App restructure - closes #245 2013-07-11 20:23:34 +01:00
server.js Refactor the initial boot of Ghost, allowing Ghost updates to keep current configuration intact. 2013-09-12 15:38:11 +01:00

Core

Core contains the bread and butter of ghost. It is currently divided up into:

  • client - the assets, helpers, models, view and templates for rendering the admin panel backbone app
  • server - the controllers & helpers for driving the server side app along with the model, api, and data
  • shared - just contains lang for now, although it's not shared yet, more stuff should go here soon like handlebars helpers
  • test - contains unit tests and a set of html prototypes of the admin UI. Really, this folder should reflect all of core
  • ghost.js - currently both the glue that binds everything together and what gives us the API for registering themes and plugins. The initTheme function is a bit of a hack which lets us serve different views & static content up for the admin & blog

This structure is by no means final and recommendations are more than welcome.