REM: Large upgrade in progress. Partly broken.
Simple blog based on node.js + express.js + pug (ex. jade) + mysql
This is learninig example app for newbies in node, here we look at:
- work with mysql
- work with pug (ex. jade)
- closer look at express
- Sessions stored in mysql
- passport
- Bootstrap usage examples
- 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 .
- Create database db_name
mysql -u root -p
mysql -u root -p db_name < sql/simple_node_blog.sql
cp .env.example .env
- Fix all config settings here
vim .env
npm install
node app.js
- nodemon
npm -g install nodemon
nodemon app.js
REM sometimes on virtualbox shared fs for example, you neednodemon -L app.js
admin:admin
Pasword is in users.pass field, a simple md5 hash so you can easily change it.
Only EN now.. Looking for multiple languages solution.
- 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)