Skip to content

piyalidas10/global-terrorism-nodejs-expressjs-mustache

Repository files navigation

Run Application

nodemon app.js / node app.js
http://localhost:3000/

Live URL

https://globalterrorism-mustache.herokuapp.com/

Deploy Nodejs application in Heroku

1. Create a Procfile to tell heroku how will run the application (web: node ./app.js)
2. So process.env.PORT || 3000 means: whatever is in the environment variable PORT, or 3000 if there's nothing there.

Video tutorial of Deployment in Heroku

https://www.youtube.com/watch?v=MxfxiR8TVNU

Database URL

Terrorism Attack in the World (1970-2015)
https://www.kaggle.com/valencar/terrorism-attack-in-the-world

#Coulumn Names

Columns
country
fatalities
latitude
longitude
country_original
country_code
country_name_iso2

#JavaScript templating engines

Some popular template engines that work with Express are Pug, Mustache, and EJS. The Express application generator uses Jade as its default, but it also supports several others.

A template engine enables you to use static template files in your application. At runtime, the template engine replaces variables in a template file with actual values, and transforms the template into an HTML file sent to the client. This approach makes it easier to design an HTML page.

https://www.creativebloq.com/web-design/templating-engines-9134396
1. Mustache
2. Underscore Templates
3. Embedded JS Templates
4. HandlebarsJS
5. Jade templating
https://www.npmjs.com/package/mustache
https://github.com/janl/mustache.js/

Nodemon install

npm install -g nodemon --save-dev

Mustache implement with Express js

https://www.youtube.com/watch?v=V2L9_iiPQ-Q
https://www.npmjs.com/package/mustache-express
https://github.com/janl/mustache.js

Highcharts implementation using Nodejs

https://sweetcode.io/nodejs-highcharts-sweetcode/
https://www.amcharts.com/demos/multi-series-map/
https://github.com/amcharts/amcharts4
https://www.highcharts.com/maps/demo/data-class-ranges

Releases

No releases published

Packages

No packages published