GithubHelp home page GithubHelp logo

tahitihat / image-gallery Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 12.73 MB

[Adobe] Evaluation Science Team takehome assessment

HTML 22.21% CSS 8.18% JavaScript 46.33% SCSS 9.45% Python 9.45% Dockerfile 4.37%

image-gallery's Introduction

image-gallery

ID: Adobe Take-home assignment for full stack role on Evaluation Science Team

Screenshot 2024-01-31 at 15 58 53

Project reqs

Functional project requirements

  • View full image gallery on single-page
    • raw image
    • thumbs up and thumbs down counts
  • Apply thumbs-up to single image (any number of times)
  • Apply thumbs-down to single image (any number of times)

Note: I made the assumption that the content and quantity of displayed images is unrestricted in this assignment, i.e. can be selected randomly. ๐ŸŒฒ

Nonfunctional project requirements

  • React frontend
  • Images served via REST API
  • Thorough unit testing across stack
  • Containerized via Docker
  • Runs on any operating system

App notes and setup instructions

To run the app via docker, execute the following in project root:

 docker-compose up --build

Frontend

  • React client initialized with Create React App
  • Written in javascript; Flow used for light typing
  • ESlint linter
  • Icons from Material UI

Run React Testing Library unit tests locally:

cd gallery-client
npm test

Backend

  • Python Flask REST API
  • Images simply stored on disk/in backend filesystem
  • Tree assets downloaded from Unsplash

TODO

  • init React client (create-react-app)
  • basic React components โ€” render photos stored in frontend
  • unit tests for React components
  • build up/down interaction locally in state
  • Choose a fun/thematic collection of photos
  • init Flask API
  • implement /get_photos endpoint
  • Complete and polish documentation

Remaining task list โ€” would have implemented with additional time (ranked in priority order):

  • Render fallback if image fails to load
  • implement /up_photo, /down_photo endpoints and persist up/down likes in SQLite
  • Better styling/CSS on frontend
  • Add accessibility support to frontend (a11y)
  • Productionize Flask server with WSGI

image-gallery's People

Contributors

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