Giter VIP home page Giter VIP logo

jungle-challenge's Introduction

Hapu Nanny Share - Jungle Devs React challenge

This project was developed as part of the hiring process for Jungle devs. The goal was to replicate this design and apply the following concepts:

  • JSX;
  • Components, props and state;
  • Lifecycle Methods;
  • Responsive design with CSS media-queries;
  • API calls;
  • Error handling;
  • Loading states;
  • SEO & accessibility;
  • A/B tests;
  • Production builds.

bootstrapped with Create React App.

Development mode

In order to run the project in development mode, you can run:

npm install

npm start

It opens http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

Production build

run npm run build to create the build folder. Also, the project is already deployed in Github Pages: guidugaich.github.io/jungle-challenge

Technologies used

This project uses React (with Hooks), and pure CSS with media queries. I also used a third-party service for AB testing, as described in the following section

A/B Testing

For the A/B testing I used an external library called react-lean-analytics. It lets you build the UI with an Experiment component and several Variant components within it. Then it sends the data to a web service in https://leananalytics.io/lab/ and you can see the comparison:





The Original is the variant in the design version and the Alternative is the other one in the challange's README.md. It compares the success cases (form was filled and sent) against the non-click cases (just a visit to the page). The service is free of charge and pretty simple to setup. I also researched other services that would be more suitable for production-ready applications, like firebase and optimizely. But for the purpose of this project, the one applied was simpler.

Folder Structure

All components are in the ./src/components folder, and the components themselves are folders that contain both an index.jsx and a style.css file.

Testing

There are 2 test cases implemented, both related to the form. They check the email validation and if the correct API call was made after submitting. Tests can be checked with npm run test

jungle-challenge's People

Watchers

Guilherme Dugaich de Oliveira 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.