Code Monkey home page Code Monkey logo

frontend-interview's Introduction


Logo

Grailed Frontend Interview

About The App

This application is a simple e-commerce store intended to serve as a template for interviewees to demonstrate their ability to work within an existing codebase. The patterns, components, and code are not what is necessarily used in the Grailed codebase, and some of them are intentionally complex to provide interviewees with an opportunity to show how well they pick up and emulate existing patterns.

(back to top)

Built With

  • Next
  • React

(back to top)

Pages

  • Home / - demo page for existing UI components that can be reused
  • Shop Page /shop - a page that listings products and will let users sort, filter, and find producs they like

(back to top)

Getting Started

This application can be run either locally or in codesandbox. It currently exists as a synced template that can be forked here

Install NPM packages

npm install

Run the application

npm run dev

Run the tests

npm run test

Lint

npm run link

(back to top)

Project structure

The application has an established project structure just like you'd see in any existing codebase.

  • __tests__ - All tests are kept here. The internal structure of this folder should map to the rest of the project structure. For example, the tests for the lib/utils/classnames.ts file lives at __tests__/lib/utils/classnames.test.ts.
  • components - This folder is where components are kept. They are nested as closely to the page they're built for, with the highest level components being ones that are universal/global/reusable.
    • components/pages - the components for the pages. The Next pages folder should use very minimal JSX/ui code and it should be kept here as much as possible
    • components/ui - universal UI components
  • lib - shared non-ui components
  • pages - the NextJS pages folder

(back to top)

frontend-interview's People

Contributors

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