but actually this is not express framework. it just native Node Js. this is just my first node js code. This is for newsbie only. im not yet to modularize/separate them into some of logic file, so in app.js you will see database config, server create, routes, http request dll
Firstly you must have node js installed. see official documentation about installing node js. also some of dependencies used:
swig
npm install swigroutes
npm install routesand mysql
npm install mysql
This code run localy (@127.0.0.1), clone / download and then you must provide mySql database (match your databse field that used in app.js). Basicly create table news with field :
id, title, url and imageFill the databse with some of dummy data.
Run command promp / shell then go to your folder downloaded before
cd /path/to/downloadedfolder/then do
node app.js
Go to browser and locate to localhost:8888
You should see the web page :)
- Node Js
- Swig for view/template
- HTML
- CSS
- Javascript