Skip to content
This repository has been archived by the owner on Mar 24, 2023. It is now read-only.

Latest commit

 

History

History
59 lines (42 loc) · 3.17 KB

MILESTONE_1.md

File metadata and controls

59 lines (42 loc) · 3.17 KB

Milestone 1

Introduction

First things first. We need to get the tooling ready so you can take full advantage of Node.js and its libraries to build the API for Emvents Inc. You will build this Node.js API using Express.js, ES6 features and a testing approach that is solid while easy to understand.

Get ready

  • Check the new JavaScript features (ES6): This new version of JavaScript brings a lot of new things to the language. Take a look at some of them and focus on understanding how to use arrow functions and let/const. http://exploringjs.com/es6/

  • Install Node.js: Follow the steps in this guide to install Node.js in your computer. This is the main "language" we will use to build the API. https://nodejs.org/en/download/

  • Install Postman: This tool will be extremely useful while testing and playing with the API you will build. https://www.getpostman.com

  • Learn about git: You should use git commit after completing each requirement to keep track of every change. https://git-scm.com/docs

  • Review the basic HTTP methods: The API you will build show respond to multiple types of requests. Learn more about the different type of HTTP methods so you can pick the right one. https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol#Request_methods

Requirements

  1. Your project should start with a server.js file with the content of the official Node.js Hello World example.

  2. You should use npm to initialize a new Node.js project

  3. You should use npm to install Express.js

  4. You should add Express.js to your project

  5. You should add a GET and a POST handler to send and receive data from the client.

  6. You should use Postman to test that your basic service works

    • Check that both routes are returning the right answer
  7. You should refactor your Express.js code to use ES6 features

    • You should use const and let to define constants and variables
    • You should use arrow functions when appropriate

NOTE: Do you want to become a remote software developer? Join our online training program where students from all around the world learn together doing remote pair programming, all while working on open source and freelance projects.