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

mediastoresdk-test

v1.1.1

Published

![Build](https://github.com/Cleeng/media-store-sdk/workflows/Build/badge.svg?branch=master&event=push) ![Tests](https://github.com/Cleeng/media-store-sdk/workflows/Tests/badge.svg?branch=master&event=push)

Downloads

2

Readme

Build Tests

MediaStore SDK

This repo is an example app which shows how to integrate with Cleeng MediaStore API. It consists of components that will empower you to build and design a seamless checkout process, help visitors become subscribers, and then allow them to manage their subscription.

Installation

Prerequisites

  • node v14.15.0
  • yarn

Follow commands

git clone https://github.com/Cleeng/media-store-sdk
cd media-store-sdk
yarn install
yarn start --environment=sandbox runWithTestOffer

App live server will be opened on http://localhost:3003. If you run the app with runWithTestOffer param, it will be opened with a sample offer and publisher on http://localhost:3003/login?offer=S817681481_PL&publisher=933103327.

Below you can find a list with available scripts.

Links

Check the live demo app here.

Here you can find documentation:

Looking for specific details?

Architecture overview

MediaStore SDK is a frontend application build with React. It was bootstrapped with Create React App. We are using a webpack to build it, Jest, and Enzyme for testing, Styled Components for styles.

This application is communicating with the backend REST API. All methods available can be found here.

The app requires params to working properly.

To enable login action pass offerId to the app. Login is also possible using publisherId, but in the sample app, we use offerId. To enable registration, pass publisherId which is required to fetch terms and conditions.

You can pass it in two ways:

In URL as a param ?offer=S1234567 / ?publisher=123456789 and this is the most important one

In local storage as CLEENG_OFFER_ID / CLEENG_PUBLISHER_ID

Sample:http://localhost:3003/login?offer=S817681481_PL&publisher=933103327

License

The Cleeng Media Store SDK is open source and available under the BSD 3-Clause License. See the LICENSE file for more info.