Simple blog based on node.js + express.js + jade + mysql
This is learninig example app for newbies in node, here we look at:
- work with mysql
- work with jade
- closer look at express
- Sessions stored in mysql
- passport
- Bootstrap usage examples
http://snb-demo.wired-mind.info/
- bootstrap v3.1.1
- jquery v2.1.0
- highlight.js 7.3
- Font Awesome 3.2.1
- mkdir folder_name
- cd folder_name
- git clone https://github.com/ijin82/simple-node-blog.git .
- mysql -u root -p -- Create database db_name
- mysql -u root -p db_name < sql/simple_node_blog.sql
- vim config/dbConfig.js -- to correct your db access
- npm install
- node app.js
- for passport auth usage change access params at config/ folder
- nodemon
- npm -g install nodemon
- nodemon app.js
admin:admin
Pasword is in users.pass field, a simple md5 hash so you can easily change it.
Only RU now.. But it's simple!
- wysiwyg (ckeditor may be) + image library
- Extend user profile (login, pass change, info)
- Roles changing + editor area for authors
- Social blog mode (seemed to be in far far glorious future)