GithubHelp home page GithubHelp logo

hackmatch's Introduction

Hackmatch

Setup

First, we need to install the json-server package. We will do it globally so we can run it from anywhere in our laptops. Run the following code in your terminal:

$ npm install -g json-server

Go to the terminal and inside the same folder where we have our .json, run the following code:

$ json-server --watch hackmatch.json --port 8000

Now we are ready to start doing requests to our new API, so go ahead and launch a GET request from Postman, you should see all the data we just paste on the hackmatch.json file.

GET http://localhost:8000/candidates

The next step you you already know how it works:

$ create-react-app hackmatch-app

Iteration 1

Display all the candidates in cards in the homepage with the picture + name + surname + numberOfLikes + numberOfNexts in the homepage. When we click on the contact, we should be able to display a new page with the information of the candidate.

Iteration 2

Create a form and the proper method to add new candidates to our list.

Iteration 3

Create a button to display a card with a random candidate. This card will include two buttons: 'Like' and 'Next'. When we click in 'Like', we will update the 'numberOfLikes' + 1 and we will display a new contact. If we click 'Next' we will update the 'numberOfNexts' + 1 and we will display a new contact.

Extra resources

JSON fake server

hackmatch's People

Contributors

noelialeon avatar

Watchers

James Cloos avatar

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.