Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

zally-web-ui

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zally-web-ui

Zally API Linter Web UI

  • 0.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

dependencies Status codecov

Zally WEB-UI

Zally Web-UI project provides a web user interface to lint your api specs.

Requirements

  • NodeJS >= 7.6

Install

npm install zally-web-ui --save

Usage

Basic

const app = require('zally-web-ui')();

app.listen(3000, () => {
  console.log('zally-web-ui running at http://localhost:3000');
});

Mount to an existing application

const app = require('express')()
const zally = require('zally-web-ui')(/*options*/);

app.use('/api-linter', zally);
app.listen(3000, () => {
  console.log('server running at http://localhost:3000');
});

Configuration options

When instantiating the app you can pass an options object to customize the behavior.

const options = { /* ..my options.. */}
const zally = require('zally-web-ui')(options);

Options

  • windowEnv: the windowEnv object contains all the values exposed to the client on window.env
  • windowEnv.OAUTH_ENABLED (default: false): enable OAuth or just Auth support on the client side (an http call will be fired on /auth/me endpoint to get the current logged in user, if any)
  • windowEnv.ZALLY_API_URL (default: http://localhost:8080): URL pointing to Zally REST API
  • windowEnv.DEBUG (default: true): logs debugging message on the client side
  • logger (default: console): custom logger
  • handlers: the handlers object contains all route handlers used by zally-web-ui
  • handlers.assets: handler that serve static assets
  • handlers.windowEnv: handler that serve /env.js javascript file used to expose windowEnv values to the client on window.env
  • handlers.index: handler that serve the single page application entrypoint on the wild card * to allow HTML5 History API working as expected

Development

Install, build and run in development mode

cd web-ui
npm install
npm run dev

The npm run dev task starts the application server in development mode with nodemon and webpack-dev-server watching for changes.
The application server acts as a proxy to webpack-dev-server as the target.

Run in production mode

npm run build
npm start

Build optimized client javascript bundle

Build webpack bundle minified and source-map file(s).

npm run build

Contributing

People interested contributing to the web-ui project can open issues and related pull requests.

Before opening PRs, be sure the test are running by executing npm test.

Contact

Feel free to contact one the maintainers

License

MIT license with an exception. See license file.

Keywords

FAQs

Package last updated on 18 May 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc