Git Product home page Git Product logo

frontend-code-challenge's Introduction

Coding Exercise Frontend

Sai's Completed Excercise Video Link

This repository contains a coding exercise for new developers joining the frontend development team. This version is focused in Vue.

Fork this repository and create your own exercise!

What we want you to build

Your mission is to build a small Pokedex application that looks similar to the next (but remember, you have freedom to express yourself!):

List View Detail View

A video example can be found in the example folder in the root of the directory as example.mov

The features we expect that your app would contain would be:

  • Search for Pokemon by text through use of a search bar.
  • Filter Pokemon by type using a dropdown.
  • Add and remove a Pokemon to and from your Favorites by clicking the heart icon.
  • Use tabs to switch between All Pokemon and Favorite Pokemon views.
  • Change the view from either a grid or list.
  • View Pokemon details using a /:name route.
  • Clicking on a Pokemon image or name should navigate to the above route to view the Pokemon details.
  • On the Pokemon details page, have a speaker icon that, when clicked, plays the sound of that Pokemon.

In addition to the above features, below are some optional features that we'd love to see:

  • Infinitely scrolled or paginated list to handle on-demand data-fetching for the long list of Pokemon.
  • Add a quick view button on the Pokemon list items that shows a modal with more information of the Pokemon.
  • Add toast notifications to show success or error messages when adding or removing a Pokemon to and from your Favorites.
  • Page transitions.

What we provide in this repository

Backend (/backend)

We have provided you with a simple GraphQL server that serves Pokemon data. The server is non-persistent and therefore on server restart, data will reset.

To run the server:

$ cd backend
$ npm install
$ npm start

After running the backend, you can access https://localhost:4000/graphql in the browser, you'll be presented with a GraphQL Playground that allows you to run Queries and Mutations as well as view the GraphQL Schema.

A sample query:

query { pokemons(query: { limit: 10, offset: 0 }) { edges { name } } }

Frontend (/frontend)

Within the folder frontend there is a simple boilerplate of a Vue app, created using the Vue CLI and based on the default Sites preset which includes: vue-router, vuex, sass, babel, eslint, unit-jest, e2e-cypress. Feel free to change this folder as you wish.

To run the frontend:

$ cd frontend
$ npm install
$ npm run serve

Access your application within http://localhost:8080/.

Technology and boilerplate

You are free to use whatever stack you want but what we value the most is Vue. We have put together a boilerplate that includes packages and folders ready to create a flow similar to our app including:

  • Vue.
  • Vue Router.
  • Vuex. This is optional (you can use it to keep the state of the list once you go back from a pokemon details).
  • Vue Apollo. This is optional, alternatively you can query the server using Axios.

Use only what you are comfortable with and feel free to use any additional libraries you deem necessary to complete the exercise. You can use any component libraries such as Vuetify, etc. However, we would like to see your CSS skills so make sure you show them to us! (layout, animation/transitions...).

Hints

  • There is no need to configure a build, the development environment is sufficient.
  • It's recommented to use a CSS pre-processor, by default the frontend boilerplate comes with Sass.
  • Tests are important and if time allows it, we'd like to see some test coverage.
  • Feel free to ask us if you have any doubt or you face any problem!

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.