GithubHelp home page GithubHelp logo

adidas-code-challenge's Introduction

Adidas-Code-Challenge

Demo

How to deploy

  1. To run development environment
npm install && npm start
  1. To deploy on a server
npm install && npm run start:production:notest
  1. To build and deploy on docker
npm run docker

Requirements checklist

Functional requirements

  • Route for searching product: [GET] /api/suggestions #5
  • Able to search for an article: [GET] /api/suggestions #2
  • Able to get a full wishlist: [GET] /api/wishlist/:identifier #6 #1
  • Able to add it to a wishlist: [POST] /api/wishlist/:identifier/item #3 #20
  • Able to delete from a wishlist: [DELETE] /api/wishlist/:identifier/item/:id #4 #8

Non-functional requirements

  • Single Page Application (SPA) #14
  • Preferred technology stack: React & Redux #9 #10
  • In-memory storage backend #19
  • Dockerized application #12
  • CI/CD Pipeline proposal #13
  • Documentation #34

Reason for choosing technologies / methodologies

  • react-boilerplate
    • I have used this application template because I need speed.
    • It is pre-built and very easy to use
    • I don't have to take care of expressjs, react & redux integration
  • alpine linux image
    • Light-weight and minimal linux image
    • Ready for production
  • http-proxy-middleware
    • Reverse proxy for suggestions API
    • Prevent CORS issue
  • agile work mode / feature branch
    • Better tracking
    • Prioritization

Worklog

Day 1

  • Requirement analysis
  • Issue/User story documentation
  • Search for boilerplate projects

Day 2

  • Implement proxy for Adidas suggestions API

Day 3

  • Backend MVP completed

Day 4

  • Revisit concepts with React/Redux
  • Frontend skeleton completed
  • Implement display wishlist
  • Implement search & display suggestions

Day 5

  • Implement add an item to wishlist
  • Implement delete an item from wishlist
  • Implement sharing functionality
  • Implement scrollable view
  • Documentation

Day 6

  • Build enhancement backlog

Inspirations / Lesson learned

  1. Connecting new concepts with existing knowledge

I believe linking new knowledge with the existing knowledge is the best way of learning.

New Knowledge Existing Knowledge
1 Redux state/action concept Makrov decision process
2 conditional render in React *ngIf in angular
3 generator function in react-saga generator function in python
  1. What's new in React ecosystem?

The last time I have used React & Redux was 2 years back. I felt in the latest version it is already a big difference:

New Concept
1 react-saga (async/await/yield) for API calls
2 hooks instead of component lifecycle
  1. Identifiers from repl.it

Inspired by the web application, I have used concatenated words for unique identification, i.e. WhimsicalCheapAdministrator

Analytics

adidas-code-challenge's People

Contributors

thomas0306 avatar dependabot[bot] avatar

Watchers

James Cloos avatar  avatar

adidas-code-challenge's Issues

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.