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

ziapf_api_dummy

v2.0.0

Published

This is hapi upgraded version of ziapf dummy server

Downloads

61

Readme

Ziapf-mock-server

Why mock server?

  • Simultaneous development (Fullstack Engineers, ignore). When you have a counterpart for API, decide on contract and start development. Whilst the API is ready, the UI will also be ready.
  • Multitasking. Want to work on multiple client builds? You can have multiple mock servers running on different ports.
  • When you want to do quick UI designs, congrats, use this mock-server for quick reloads. Refreshes in no time.
  • Are you writing APIs specific to JS SDK and want to check if SDK UI is compatible to your change? You have mock SDK as well.
  • No idea what icon has what name? Mock server will help you down.
  • Is CSEZ accounts server down and you are writing UI which has got nothing to do with it? No worries. Write down the API in mock-server and continue to write your UI.

Convincing enough? Get started now.

Getting started

Prerequisites

How to setup?

  • Clone this repository's Master branch.
  • Navigate to the clone directory
  • Do npm install in the cloned directory. This will install all the required NPM packages for this mock server to run.

How to run server?

Note:- You can also start multiple servers with additional parameter "port" like forever start PATHTO/ziapf-mock-server/app.js "path" `pwd` "port" "8022"

Why forever?

forever keeps your server running in the background. You can use any other way or package to run the server in the background.

What abouts - Mock JS SDK

  • When once your server is on, go to https://localhost.csez.zohocorpin.com:8021/websdk and there you see a mock SDK.
  • Web SDK mock not only allows you to test the current build's SDK but any build's SDK. Simply give zia-chat-sdk.js URL, portal and skill namespace and Submit.
  • In your clone, you can edit few parts of mock SDK UI to test which is available in /js_sdk/ path.
  • Good news? Mock server will soon plan to support more customisation options.

What abouts - Web icons

  • When once your server is on, go to https://localhost.csez.zohocorpin.com:8021/webicons and there you see a simple page with list of icons.
  • Move your mouse over each icon to know what name has it got.
  • The icons will be served from the JS build in which your server is running currently

Important Updates

In commit 83c31ba6 (Version SDK setup)

In this commit of master branch, we have added a test environment where the SDK can be tested with new flow. This flow will be served under the URL HOME/versionsdk

Read more about SDK Version setup here. So, when the repository is cloned, navigate to js_sdk_version folder and install npm as said in How do we setup? - SDK Versioning doc. When you do so, the ziaSkillsSdk configured in package.json will be served.

How do we change it to a development setup?

  • Clone your zia-chat-sdk repository
  • Move into the repository and do bower install
  • Now, in the UI that is seen when you go to versionsdk root, start the SDK watcher if not already done.
  • Now as you edit your SDK in zia-chat-sdk, you can reload the page and check as you do always.

What abouts - Proxy server

  • Running this server will point all the API urls to a configured csez server, instead of using a mock server
  • To run the proxy server, run the following in the dist folder
forever start PATH/TO/ziapf-mock-server/proxy-server.js
  • Default variables
    • PROXY_DOMAIN - 5228-u20.tsi.zohocorpin.com:8443
    • PORT - 3000
    • DIST_FOLDER - pwd