Giter Site home page Giter Site logo

booking-frontend's Introduction

Booking Frontend

Step 1

The Booking frontend needs to connect to an instance of the Booking API. You will need to install and run that first.

Step 2

Fork the Booking Frontend repo, clone it to your machine and run npm install.

npm install

Step 3

If you're testing locally and want access to all of the features, set the environment variables in the terminal or in your bash profile. These are all optional when testing, but should be set in production with the exception of IP_WHITE_LIST.

If you don't set an email and password the application wont be able to send verification emails.

If you don't set an IP whitelist the application will remain accessible to any IP address.

The timezone is set so that the application can handle changes in the clocks going forwards or backwards.

Step 4

Start the application.

node server

Environment Variables

PORT - sets port the service will listen on, defaults to 5000.
IP_WHITE_LIST - array of IP's as strings. If set, the application will reject connections from any IP not in the array. If no white list is set, anyone can access the service.
EMAIL_ADDRESS - an email address the application can use to send verification emails. Must be a gmail address.
EMAIL_PASSWORD - password to the EMAIL_ADDRESS so the application can log in to send verification emails.
FEEDBACK_EMAIL - email address used in the mailto: feedback link.
GA_TRACKING_ID - Google Analytics tracking ID, GA javascript will not be included if this is not set.

examples:

PORT=3000
IP_WHITE_LIST=['127.0.0.1', '192.168.0.1']
[email protected]
EMAIL_PASSWORD=p45sW0rd!
[email protected]
GA_TRACKING_ID=UA-12345678-90

booking-frontend's People

Contributors

abbott567 avatar gunjam 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.