mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-27 22:49:56 -05:00
be7ed2dfdc
Closes #374 * Included node-validator as a package * Implemented server side validation (the client side js is a mess, need a LOT of work) * Validates email address both on signup and login screens, gives error message on malformed email addresses * Requires at least 8 chars of password * Tells user if password is too short * Tells user if no such user on login * Tells user if wrong password on login * Tells user if server responds with a 404 (goes away, dies, etc) * Added middleware between req and login / signup for validation |
||
---|---|---|
.. | ||
client | ||
server | ||
shared | ||
test | ||
ghost.js | ||
README.md |
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.