GithubHelp home page GithubHelp logo

unbanksytv / wt-hotel-explorer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from skkr/wt-hotel-explorer

0.0 1.0 0.0 1.83 MB

Example Winding Tree hotel explorer

Home Page: https://hotel-explorer-playground.windingtree.com

License: MIT License

Dockerfile 0.12% Shell 1.37% JavaScript 94.97% CSS 2.82% HTML 0.71%

wt-hotel-explorer's Introduction

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

Getting started

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:3000

You can also run this app from a docker container. Please note that there is a handful of environment variables required for a successful build. If you want to run the app against a different wt-read-api, change the WT_READ_API environment variable. Currently, version 0.8.x of the read api is assumed.

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

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

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).

wt-hotel-explorer's People

Contributors

jirkachadima avatar skkr avatar pabloalice avatar greenkeeper[bot] avatar acegentile avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.