Skip to content

fac-15/RankMyRequest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •