kzlsakal / booking-proxy

Proxy server for the listing page of a vacation rental website

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Proxy server for the listing page of a vacation rental website


Languages

Language:HTML 40.2%Language:JavaScript 34.2%Language:CSS 25.6%