diff --git a/Bookings/README.md b/Bookings/README.md new file mode 100644 index 0000000..36e6e7d --- /dev/null +++ b/Bookings/README.md @@ -0,0 +1,186 @@ +# Bookings + +**Bookings** is a web application written in [ReactJS](https://reactjs.org) and [NodeJS](https://nodejs.org) that, backed by the power of the [MariaDB Node Connector](https://github.com/MariaDB/mariadb-connector-nodejs) and the [MariaDB X4 Platform](https://mariadb.com/resources/blog/deploying-mariadb-platform-x4/#smart), unleashes the power of [smart transactions](https://mariadb.com/resources/blog/introducing-mariadb-platform-x4-smart-transactions-and-cloud-native-storage/)! + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Bookings
+A MariaDB Smart Transactions Demo
++ Flight score: +
++ {score} +
+ +Price score |
+ {assessment.price_score} | +
+ Delay score +This flight is delayed {assessment.delay_percentage}% of the time. + |
+ {assessment.delay_score} | +
+ Cancellation score +This flight is canceled {assessment.cancel_percentage}% of the time. + |
+ {assessment.cancel_score} | +
Avg. delay: {flight.avg_delay !== null ? Math.round(flight.avg_delay) : 0} minutes
+Flight duration: {this.getDuration(flight.dep_time,flight.arr_time)}
+Avg. flight duration: {this.getFormattedTimeFromInt(flight.avg_duration)}
+{flight.origin} - {flight.dest}
+
+
+
+ Origin + {this.renderAirportOptions(this.state.selectedOriginOption,this.handleOriginChange)} + |
+
+
+
+ Destination + {this.renderAirportOptions(this.state.selectedDestinationOption,this.handleDestinationChange)} + |
+ ||
+
+
+
+
+ Departing +
+
+
+
+
+ Returning +
+
+ |
+
+
+
+
+
+ Adults (18+) + +
+
+
+ Children (0-17) + + |
+ ||
+
+
+
+ |
+
+ Historical score ++ Based on historical analytics this flight has a {assessment.historical_delay_percentage}% + chance of being delayed. + + |
+ {assessment.historical_score} | +
+ Weather score + |
+ {assessment.weather_score} | +
+ Delay projection (minutes) ++ This flight is delay probabilty has a multiplier of {assessment.weather_delay_multiplier} + due to current weather projections. + + |
+ {assessment.projected_delay} | +
{assessment.overall_score}
+{this.getFormattedDate(trip.fl_date)}
+Low: {trip.forecast.temp_low}
+High: {trip.forecast.temp_high}
+Precip: {trip.forecast.precip_probability}
+Wind: {trip.forecast.wind_speed}
+Flight | +Departs | +Arrives | +Duration | +
---|---|---|---|
+ {trip.airline_code} {trip.fl_num} + | ++ {this.getFormattedTime(trip.dep_time)} + | ++ {this.getFormattedTime(trip.arr_time)} + | ++ {this.getDuration(trip.dep_time,trip.arr_time)} + | +
+ |
+
+
+
+ Estimated + {this.getFormattedOffsetTime(trip.dep_time,trip.assessment.projected_delay)} + |
+
+
+
+ Estimated + {this.getFormattedOffsetTime(trip.arr_time,trip.assessment.projected_delay)} + |
+ + + | +