Skip to content

idr17/express

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Express js / Native Node Js Webpage

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

Getting Started, prerequisites and run!

Firstly you must have node js installed. see official documentation about installing node js. also some of dependencies used:
swig

npm install swig
routes
npm install routes
and 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 image
Fill 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 :)

Built With

  • Node Js
  • Swig for view/template
  • HTML
  • CSS
  • Javascript

About

Native Node JS Webpage

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published