Giter Club home page Giter Club logo

warp-frontend-assignment-2022's Introduction

Warp Assignment for frontend developers.

The goal is to get an idea of your skills and approach. So please pick the parts of the assignment that you are comfortable to take on by yourself.

About the app

The app is built in two parts: A json-server API and a React application (initialized with create-react-app)

Ports

  • the react app runs on port 3000
  • the api runs on port 3001

Requirements:

  1. Node.js
  2. Yarn

How to run

  1. In your terminal run yarn install
  2. Run yarn start-api to start the API
  3. Open another terminal in the project folder and run: yarn start

The API

If you are unfamiliar with json-server take a look at the package for more information.

You can find the database file in ./db/db.json. A copy has been added as db.original.json.

The api has two endpoints; /devices and /employees.

An example GET request has been added to ./src/App.js

Some more examples are:

GET ${apiUrl}/employees?role=manager
GET ${apiUrl}/devices?brand=Oculus 
GET ${apiUrl}/employees/1 // gets information of employee 1

POST ${apiUrl}/devices
/* 
    requires a body containing all fields except id
    example body: {
      "brand": "Brandname",
      "product": "Product name",
      ...
    }
*/

If you want to add more endpoints you can do so in db.json. Remember to restart the API after making changes.

The frontend

We want you to have a clean slate to start with. A little bit of data has already been given on startup, but everything from here on out is up to you!

You can also of course remove & edit anything in App.js that is not to your liking.

You can take inspiration from warpvr.com for your designs.

Good luck!

warp-frontend-assignment-2022's People

Contributors

menno avatar marnixkrul avatar

Stargazers

Anthony Tong 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.