/meusmems

Node.js exercise based in a counter

Primary LanguageEJS

<a href="https://github.com/badges/shields/graphs/contributors" alt="Contributors">
    <img src="https://img.shields.io/github/contributors/badges/shields" /></a>

https://img.shields.io/github/stars/JoanRecorda/meusmems https://img.shields.io/github/downloads/JoanRecorda/meusmems/total?logo=GitHub https://img.shields.io/github/release-date/JoanRecorda/meusmems?logo=Github https://img.shields.io/github/last-commit/JoanRecorda/meusmems

https://img.shields.io/github/commit-activity/y/JoanRecorda/meusmems?logo=Github

<a href="https://github.com/badges/shields/graphs/commit-activity" alt="commit activity">
    <img src="https://img.shields.io/github/commit-activity/y/JoanRecorda/meusmems?logo=Github" /></a>

https://img.shields.io/tokei/lines/github/JoanRecorda/meusmems?logo=Github

GitHub stars

Table of Contents

  1. General Info
  2. Technologies
  3. Installation and Setup
  4. Collaboration
  5. FAQs

made-with-javascript

General Info


  • This is a node.js exercise for my Full Stack Development Bootcamp.

  • Project status: work in progress.

  • Heroku depolyment url: https://meusmems.herokuapp.com/

  • I've been following the instructions from the following Bluuweb tutorial:

https://bluuweb.github.io/node/

Screenshot

Technologies


<title>JavaScript</title> <title>Node.js</title> <title>V8</title>

  • This project is based in a JavaScript Node.js back-end JavaScript runtime environment that runs on the V8 engine.

  • Just a little reminder about Node.js: "(Node.js) lets developers use JavaScript to write command line tools and for server-side scripting—running scripts server-side to produce dynamic web page content before the page is sent to the user's web browser.

  • Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices. Node.js is a tool in the Frameworks (Full Stack) category of a tech stack. Check this.

  • Once everything has been installed run the app with the following command (both are ok):

nodemon app.js
nodemon app

Installation and setup


<title>Node.js</title>

  • Download from nodejs.org and install node.js. Check version with:
node -v

<title>JSON</title>

  • Once installed add the following command and execute to create package.json:
npm init -y

<title>npm</title>

npm i cowsay

<title>Nodemon</title>

  • Then, install the Nodemon packaje
npm install -g nodemon
  • Once is installed then indicate Nodemon to which file is gonna be listening.
nodemon app.js

<title>Express</title>

npm install express --save
  • Then use a template engine to create a dinamic webpage (http://expressjs.com/en/resources/template-engines.html) because we won't develope with the typical html. In this case, we'll use EJS template (https://ejs.co/#install).

  • NOTE: the equivalent framework for Vue could be nuxtjs.org and for example for React would be nextjs.org framework that is so useful to make SPA webpages who renders from the server-side.

npm install ejs

<title>Bootstrap</title>

<title>Heroku</title>

$ heroku login
$ git init
$ heroku git:remote -a meusmems
$ git add .
$ git commit -am "make it better"
$ git push heroku HEAD:master

Headline H1

Headline H2

Headline H3

Headline H4

Headline H5
Headline H6