New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@windingtree/wt-hotel-explorer

Package Overview
Dependencies
Maintainers
3
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@windingtree/wt-hotel-explorer

Web app to show hotel inventory from WT api.

  • 0.9.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
3
Weekly downloads
 
Created
Source

Greenkeeper badge

Winding Tree hotel explorer

Example web application showcasing what the Winding Tree platform is capable of. This is not meant as a real life application.

Requirements

  • NodeJS >= 10

Running locally

To run this app locally, use npm start command. It will be connected to the playground environment and you can happily develop with HMR enabled. It will be available on http://localhost:3001.

Docker

You can also run this app from a docker container. Please note that there are two sets of environment variables. The NODE_ENV and GIT_REV have to be provided at build time.

The WT_READ_API and WT_SEARCH_API have to be provided for the container runtime.

$ docker build --build-arg NODE_ENV=production --build-arg GIT_REV=`git rev-parse --short HEAD` -t windingtree/wt-hotel-explorer .
$ docker run -p 8080:8080 -e WT_READ_API=https://playground-api.windingtree.com -e WT_SEARCH_API=https://playground-search-api.windingtree.com windingtree/wt-hotel-explorer

In a similar fashion, you can build and run the docker image in a production-like environment.

NPM

You can install and run this from NPM as well:

$ npm install -g @windingtree/wt-hotel-explorer
$ WT_READ_API=https://playground-api.windingtree.com -e WT_SEARCH_API=https://playground-search-api.windingtree.com wt-hotel-explorer

Experimental build for Swarm

If you run npm run build-for-swarm-playground, you will get a slightly different build that can be uploaded to and served from Swarm.

It uses a different react router (hash-based) to circumvent the limitations of running the app not from a root domain (such as https://example.com/) but from a relative path (such as https://swarm.example.com/bzz:/0xsupersecrethash).

FAQs

Package last updated on 07 Mar 2019

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