Coder Social home page Coder Social logo

hyf-homework-nodejs-3's Introduction

REST Express Homework

With this homework we would learn how to create a REST server.

We would create a simple counter to understand the details of persistent data.

Steps

  • Create a Server that would answer to "/" with "Hello World"
  • Create an endpoint that would answer to GET to /counters with the list of counters



HackYourFuture
Homework for HackYourFuture Students

hyf-homework-nodejs-3's People

Contributors

m3kh avatar

hyf-homework-nodejs-3's Issues

Welcome

Welcome

In this repository, we'll exercise with NodeJS.

We would build a RESTful Server.

You may be thinking, "What exactly is it, and do I need it in my project?"

What do we need a Server? Why should be RESTful?

When building a Web Applications, we need to make sure to split the responsability between Server and Client.
Server is where usally you centralise and store the information.
Client is where you interact with that data.

Client Server Communication

Among different way to make Client and Server communicate, a pattern that has show his advantage is REST.
REST serves a set of rules that apply to Paths and HTTP Methods, to avoid reinventing a style of communication between those Components.

So, are you exited to start?

Before, we cam continue, we need to Setup a Continuous Integration tool, to run our tests.

Step 1: Enable Continuous Integration

Ready to see how CI can fit into your workflow? Let's install Travis CI, and start our very first CI build!

⌨️ Activity: Enable Travis CI on this repository

  1. Open the Install Travis CI link in a new tab.
  2. Install Travis CI on this repository.
  3. Create a new pull request using base: master and compare: step-1.

I'll respond in your pull request with the next step

Sometimes I respond too fast for the page to update! If you perform an expected action and don't see a response, wait a few seconds and refresh the page for your next steps.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.