Git Product home page Git Product logo

shopify_challenge's Introduction

shopify_challenge

This is a Image Repository Application that is created using ReactJS, Flask and SQLite as part of Shopify Developer Intern Challenge Question.

Instructions to run the Application

Here is my development environment npm 6.14.4, node 10.19.0, Python 3.7.6

  1. Clone the repo
git clone [email protected]:mzzchy/shopify_challenge.git
cd shopify_challenge
  1. I recommend use Anaconda to create virtual enironemnt before installing it. Here is the instruction

  2. Install backend server

pip install .
  1. Start the Backend Server
export FLASK_APP=server
export FLASK_ENV=development
flask run

To verify the backend is setup successfully, please go to http://localhost:5000/ and make sure you see welcome to image repo backend.

  1. In another terminal, start the Front End
npm install 
npm start
  1. Now Go check the image repo on http://localhost:3000/

Structure

The frontend is writted by ReactJS and the backend is writted by Python with Flask. All Images is converted to Blob and stored in Sqlite.

The application Current has the following features:

  1. Upload one/bulk images
  2. Show uploaded images in grid
  3. Delete one/bulk images (The frontend of Bulk deletion hasn't been implemented but the API is provided)
  4. Search by image name
  5. Pytest for all api endpoints

TODO(I will try to finish these feature before the deadline):

  1. Set a independent name for uploaded image. (Almost front end)
  2. Setup Authorization system to allow user create accounts and mark image as privated or public
  3. Lazy load image.

Further Thought

  1. Dockerize the repo
  2. Using filesystem like AWS S3 to store the images
  3. Extract feature of uploaded image and store in database. For image similarity search, using approximate nearest neighbor algorithm to compute get top K similar image.

shopify_challenge's People

Contributors

mzzchy avatar

Watchers

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