Code Monkey home page Code Monkey logo

940b3fec-9cc9-48f6-b257-ae44e9c51584's Introduction

Objective

Your assignment is to implement an analytics dashboard using JavaScript and React.

Brief

Freddy loves Halloween. He loves it so much that he decided to open his own online artisanal Halloween candy shop last year. The shop was a huge success, thanks to the unique and exclusive candy stock list. Now Freddy needs a simple web app to manage his candy orders. You’ve been hired to build the frontend of that app!

Tasks

  • Implement assignment using:
    • Language: JavaScript
    • Framework: React
  • Build out the project to the designs inside the /Designs folder.
  • Implement the following views
    • Login: Login using the API at https://freddy.codesubmit.io/login with POST { username: 'freddy', password: 'ElmStreet2019' }. The login endpoint will return a JWT access_token that is valid for 15 minutes and a refresh_token which is valid for 30 days. Make sure to also handle wrong credentials properly
    • Dashboard: Retrieve the necessary data for the dashboard at https://freddy.codesubmit.io/dashboard. This endpoint requires a Authorization: Bearer access_token header. Use the access token that you retrieved from Login. Keep in mind that access tokens expire after 15 minutes. You may request a fresh access token by sending a POST request to https://freddy.codesubmit.io/refresh with the Authorization: Bearer refresh_token header. Implement the chart with a charting library of your choice and add a toggle that switches between a weekly and yearly view.
    • Orders: Fetch the orders at https://freddy.codesubmit.io/orders?page=1&q=search_term. This endpoint requires a Authorization: Bearer access_token header. Make sure to implement search and pagination

Deliverables

Make sure to include all source code in the repository. To make reviewing easier, include a fully built version of your assignment in a folder named public.

Evaluation Criteria

  • JavaScript best practices
  • We're looking for you to produce working code, with enough room to demonstrate how to structure components in a small program.
  • Show us your work through your commit history
  • Completeness: did you complete the features?
  • Correctness: does the functionality act in sensible, thought-out ways?
  • Maintainability: is it written in a clean, maintainable way?
  • Testing: is the system adequately tested?

CodeSubmit

Please organize, design, test and document your code as if it were going into production - then push your changes to the master branch. After you have pushed your code, you may submit the assignment on the assignment page.

All the best and happy coding,

The Contente Team

940b3fec-9cc9-48f6-b257-ae44e9c51584's People

Contributors

sandokan815 avatar

Watchers

 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.