fac-15 / RankMyRequest

Week 5 - back-end API request using Node.js

Home Page:https://safe-temple-44463.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RankMyRequest Build Status

We are making a second api call and have it as far as the console so far.

Day1 - Skelton 💀

  • Create files - Public / src

  • npm install
  • npm install --save-dev nodemon
  • npm install supertest --save-dev
  • npm install tape --save-dev
  • NPM installation - tape / tape-spec

💁Server.js

  • Create server.js
  • Require HTTP from Node to use the module
  • Require the local sever router file
  • Create the port name and adress by initiallising a varible with = process.env.PORT || 500
  • createServer method to setup the server by passing in the router
  • Create server.list(port)

🚦 Router.js

  • Navigate to the home and errors endpoint

✋ Handler: api

We made a new function in the handler filed called apiHander. The job of this function is to call the NASA api and log it to the terminal. We hope to adapt this to be able to post the result of any api call into our webapp.

👪 Public folder 👪

We added main.js, index.html, style.css and linked these files

About

Week 5 - back-end API request using Node.js

https://safe-temple-44463.herokuapp.com/


Languages

Language:JavaScript 56.3%Language:HTML 23.2%Language:CSS 20.5%