Njeshe Amal “ARTicle” blog

If you want to go quickly, go alone. If you want to go far, go together.




CONTENTS

· An Informal Introduction
· To Bootstrap, or Not To

· Redux: What The Flow?

· Get Started: Node/Express

· REST



BAKIN MASANIYA
Computer scientist, Lisa Gelobter, assisted with the 1995 creation of Shockwave, essential technology that led to the development of web animation. (So, we have her to thank for GIFs).

Every morning, a gazelle wakes up. It knows it must run faster than the fastest lion or it will be killed. Every morning, a lion wakes up. It knows it must outrun the slowest gazelle or it will starve to death. It doesn’t matter whether you’re a lion or gazelle. When the sun comes up, you’d better be running.

︎  ︎  




Home
ART—icle 04

Getting Started: Node/Express.js

Intro to an Node/Express.js server build.



Background: 
Express is a Node.js web application framework. It utilizes HTTP utility methods and middleware, which makes creating APIs much simpler than with Rails, for example. 

Node is a JavaScript runtime environment that is mostly used for server-side programming.
Knowing JavaScript is not a pre-requisite for this tutorial, although it will be helpful. Nevertheless, it will become crucial as you advance past this tutorial. 
Follow these links to familiarize yourself with the technologies mentioned in this tutorial. 
Express
Node
JavaScript


Follow the these links to see a video tutorial on the steps.

01. Open a new project folder in your favorite code editor. Next, open up the terminal and run “npm init”.
02. Add Express to your list of dependencies by running “npm install express”
03. Create a new file in your project directory called “app.js” or “server.js”. In it, create a basic server.
Now, you can run node server.js in your terminal. You should see it output “Running on port 3000” or whatever string you defined in your .listen. Next, go to localhost:3000 in your browser. There, you should see “Welcome to my API”, or whatever string you defined in your .send. 


Thanks for stopping by 🙃️, BYE!
NEXT PAGE     HOME     INDEX