Code Monkey home page Code Monkey logo

booking-proxy's Introduction

Lairbnb / booking-proxy

Proxy server for the listing page of a vacation rental website

Related Projects

Table of Contents

  1. Usage
  2. Requirements
  3. Development
  4. Production
  5. Screenshot

Usage

Example URL: http://localhost:3002/25

Requirements

  • Node v12.18.1

Development

All commands from within the repository's root directory.

Installing Dependencies

npm install

Development Server

npm run start:dev

Production

Environment Variables

If you do not have the environment variables set up via shell, you can create a .env file in the repository's root folder to load them.

BOOKING_SERVICE_URL=<booking-service-url> # http://127.0.0.1:3002
IMAGES_SERVICE_URL=<carousel-images-service-url> # http://127.0.0.1/3001
REVIEWS_SERVICE_URL=<reviews-service-url> # http://127.0.0.1/3003
NEW_RELIC_LICENSE_KEY=<your-new-relic-license-key>
CLOUD_STYLE_URL=<your-cloud-bucket-url> # https://x.amazonaws.com/sdc-proxy

Node Server

npm start

Hosting Assets on Cloud

Requires Grunt and the dev dependencies to be installed

  • Create the grunt-aws.json file at $HOME/.aws directory

    {
      "accessKeyId": "<your-access-keyId>",
      "secretAccessKey": "<your-access-secret>",
      "bucket": "<your-bucket-name>"
    }
  • Add CLOUD_STYLE_URL=<your-cloud-bucket-url> to the environment variables

  • Run $ grunt on the terminal

Screenshot

Screenshot

booking-proxy's People

Contributors

brennancaldwell avatar kzlsakal avatar phillipalexander 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.