npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

e-commerce-app

v0.1.5

Published

Using the assets provided, your task is to build a simple e-commerce application.

Downloads

28

Readme

Javascript Developer coding challenge

Using the assets provided, your task is to build a simple e-commerce application.

Please, read all sections within this document carefully.

Points marked as optional are entirely up to you. They are not required.

With the "Guidelines" section in mind, you should complete the following main goals.

Main Goals

  • Develop a simple build system for your application

  • Develop the “Add/Remove to Bag” and “Add/Remove to Wishlist” actions which work con client side only

  • Develop a product listing pagination with 6 products per page.

  • The bag in the header must be updated with the new quantities and the new total price

  • [optional] Build a mini-bag with convenient actions, coherent with design. Example of a mini-bag is included within the images folder but you must develop a mini-bag that’s coherent with the page’s design.

Guidelines

You can use Vuejs or React framework built with Webpack, you can start with the boilerplate you want

You must use the given API calls to retrieve activities(products) and you can choose any API client to work with

All code produced should have modularity, reusability and performance in mind, while being well documented

In the end, you should have a build task to output a production ready folder (e.g.: dist) with all your work as well as the source code that generated it. This folder must not be committed and instructions to produce it must be provided in order to let us run the application in production mode.

If not specified in the design, it’s up to you to decide what’s best

You can't link to external resources, if necessary include them in your solution package

API docs

  • This is the basic curl to retrieve a product listing. You'll have to implement client API calls to get paginated response
  curl -X GET \
    'https://api.musement.com/api/v3/venues/164/activities?limit=6&offset=0' \
    -H 'accept-language: it' \
    -H 'content-type: application/json' \
    -H 'x-musement-currency: EUR' \
    -H 'x-musement-version: 3.4.0'
  • From the call above, consider these response props:
  * cover_image_url => is a URL string where you have to append this query string to make a responsive image ?q=60&fit=crop&w=[image_width_in_px]&h=[image_height_in_px]
  * title => product title
  * description => product description
  * net_price or retail_price => if discount prop is greather than 0, full price is net_price.formatted_value (to be shown as striked) and final price will be retail_price.formatted_value

Extra credit

  • Make the application responsive, in your own taste ( CSS )

  • Use CSS preprocessors

  • Use of linting tools

  • Unit testing / E2E testing

  • Performant code

Delivery

Create a private Git repository with the following format:

js_challenge_<first-name>-<last-name> 

Github allows private repositories for free, you only need to grant us access to it afterwards. Please, use these accounts: dotBits, king-prawns

Commit your work as you progress

You can delete the contents of this README and replace it with content of your own

Eliminatory Points

Not following these points may cause an immediate elimination:

  • Project is delivered in any way other than in a private GIT repository
  • The project's [main goals](#Main Goals) aren’t fulfilled
  • Lack of build task to output production ready (e.g.: dist) folder
  • Lack of instructions to run the project

Assets Provided

  • SVG icons
  • Fonts
  • HTML code - index.html
  • CSS code - main.css
  • Sample Image - main.css
  • API docs