Coder Social home page Coder Social logo

fe-hiring-challenge's Introduction

Full Stack Django Hiring Challenge

Introduction

Datapane is being developed as a hybrid application, also known as an enhanced MPA, as opposed to an SPA.

This approach is used by many larger websites, including GitHub, Facebook, and Shopify, allowing us to take advantage of a robust BE ecosystem, whilst adding FE-rendered components as needed to improve interactivity.

This is simpler and faster in many ways for startups, however comes with it's own challenges (see https://www.gregnavis.com/articles/the-architecture-no-one-needs.html for an overview of the pros/cons involved).

This challenge involves building a small hybrid-MPA using a combination of a back-end stack (e.g. Django, Rails, etc.) combined with your front-end technology of choice, (e.g. React, Vue, Angular, etc.) from scratch to explore the design and architecture of such an application.

Task

For this task we'll be building a very simple webapp with 3 main pages and a navbar.

This app is comprised of several individual components - you can build these components using either FE or BE rendering, however must use each technology at least once.

Pages & Components

Navbar

  • The navbar is persistent at the top of the page and has 3 navigation options
    • Home (the default)
    • CSV Uploader
    • Entry Form
  • This navbar is to be rendered by the backend via server-side templates

Home Page

  • This page has a single component that just displays "Lorem Ipsum"

CSV Uploader Page

  • This page has 2 components
    1. A file uploader, that allows users to select a CSV to upload to the server (the repo includes a sample CSV to test with)
    2. A viewer component, that displays the contents of the CSV sent to the server in the 1st component
      • The CSV should be parsed and presented as a table
      • The table viewer should be able to handle displaying larger CSVs, i.e > 1000 rows, in an easy-to-navigate manner

Entry Form Page

  • This page has 2 components
    1. A form the allows users to enter a name, age, and email of an individual
      • This form should validate the input in some way
    2. A table that displays the list of all entries added to the server via the 1st component
      • This table is stored on the BE and should be reproduced upon navigating back to the page
      • The contents of this table are not linked to the CSV file in the previous page

Technologies

  • A traditional BE stack that supports generating both server-side HTML templates and JSON APIs (we recommend Django and DRF as we use these ourselves, however others, except NodeJS/Express, are acceptable)
  • A modern FE framework (e.g. React, Vue.js, Svelte, Angular, etc., - internally we use React)
  • Build systems and scripts of your choice, e.g. typescript, FE bundlers, etc.
  • Any FE and BE libraries you may find useful to help your task, e.g. a CSV parsing library - we prioritise using existing libraries to accomplish tasks rather than building in-house,

Requirements

  • The site is a traditional MPA rather than an SPA, with inditidual pages rendered via BE templates
  • For each component, you may choose whether to use BE technology or FE technology (e.g. server-side templates/forms or react/json), however both technologies must be used at least once
  • Each component on each page should be independent and initalised separately, i.e. by calling ReactDOM.render or similar for each component
  • The components state should come via the BE as the single source of truth, and there should not be any FE state management solution used, e.g. Redux, MobX, etc.
  • Multi-user support and log-in is NOT required for this project
  • The app should behave like traditional content-based web site - i.e. back button should work, history should be present, etc.
  • Instructions should be provided on how to build / bundle / start the system.

Optional Requirements

  • Styling, via CSS, is preferable but not required, however if you do style your app, then please make sure that both BE and FE- rendered components look similar
  • Rendering new pages may cause flickering during reload, you can attempt resolving this in several ways, including, network optimisations and caching, making use of turbolinks / alpine.js / htmx / etc., and other approaches (see https://matix.io/using-asynchronous-requests-to-mimic-single-page-apps-in-django/)

Review

Please don't spend more than 2-4 hours on this - we're looking to see how you approached the problem and the decisions made rather than a complete solution. This should be a fun challenge rather than a stressful endeavour.

There is no right answer as such, we will mainly be looking at code quality, software architecture skills, completeness of the solution from a software engineering perspective, and clarity of thought.

Once completed, please create a PR containing your work, send us an email, and book a second follow-up interview via angellist (https://angel.co/schedule/mandeep-gill-2).

fe-hiring-challenge's People

Contributors

mands 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.