Skip to main content
highlighted:

Screencast: Create a extendable Node.js blog with We.js!


Transcript:

Create one extendable Node.js blog with We.js!


Before all: 

>  Install all we.js dependencies: https://wejs.org/docs/we/getstarted.installation

>  Update you global **generator-wejs** and **we** cli modules


1 - Generate the project structure:

yo wejs:blog blogger
# logs ...
cd we-project-blog-blogger


2 - Install and database configuration:


2.1 - Installation


npm install


2.2 - Create the database


In this tutorial we will use the Mysql database for session and data in localhost

Then create your database with your favorite tool, example with terminal:

mysql -uroot -e 'create database blogger;';


2.3 - Configure in config/local.js file

Open the config/local.js file and change the database settings

3 - Start the project to install all plugins and generate the database structure


we go


4 - Load localization


we loadLocales


5 - Login and configure the project permissions


Login


Url: http://localhost:4000/login


First user email and password:

Email: contato@albertosouza.net

Password: 123


Change permissions:


Url: http://localhost:4000/admin/permission


to enable ACL and permissions change acl.disabled: true to acl.disabled: false in your **config/local.js** file


6 - customize the blog default theme images:


folder:  **files/public**

Override default imagems


7 - Change main menu links


Url: http://localhost:4000/admin/menu


8 - Add one example widget


See in video ...


9 - Create some articles (posts)


See in video ...


10 - Done for now


Thanks all :)


See this example project in github: https://github.com/wejs-examples/we-example-blog

Get more magic in: http://wejs.org

Creating an we.js blog screencast

afterContent:
Widget: Comments 14:

Comments