Giter VIP home page Giter VIP logo

frontend-test's Introduction

Getting Started

First, run the development server:

npm install
npm run dev
# or
yarn install
yarn dev

Open http://localhost:3000 with your browser to see the result.

Running tests

In another terminal tab, keep the tests running:

npm run test
# or
yarn test

Instructions

  • Fork this repo to your own github account
  • After setting up the project, keep your browser with http://localhost:3000 open as well as Jest tests running on the background
  • Start opening the buildFullUrl file and:
    • Fix the failing test and commit the quick fix
    • Refactor the file the way you'd like, keeping the tests green
  • After you're done, create a PR named "Challenge Solution" in your own repo and send us a link to the PR so we can review its diff

Rules

  • You can use any data munging library that you like, like lodash, ramda, etc;
  • Think twice before adding external dependencies. Don't use a library that does URL parsing like you're intented to do;
  • Keep the index and test file untouched, if you want to create more tests and extract the code into smaller functions, create other test file and test those functions in separate;

We hope you have fun doing this exercise 😉

frontend-test's People

Contributors

gustavoguichard avatar raul743 avatar

Stargazers

Ricardo João António 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.