Skip to content

Angular2 Booking admin component for setting Availability Price and minimun nights component

License

Notifications You must be signed in to change notification settings

leandromerli/ng2-booking-admin-component

Repository files navigation

Angular 2 APM component MIT license

It's a component inspired in the price calendar that uses AirBNB but it shows and updates the Availability, Price, Minimun nigths for booking systems.

It uses the "Redux" design pattern (for the calendar data and type of room data).

It's connect to database(MongoDb) and obtanis all data for a month for all types of rooms that the system has.

You can modify in one single day one value and after loosing the focus the component goes to the server and updates that single day info.

This project it's a proof of concept (for now on) of the Angular 2 + Redux design pattern + Angular 2 testing framework + Node Backend +

It's a functional component but it needs improvements and move the hardcoded data to DB (types of room and default APM value) , please contact me if you plan to use it, I can assits you to develop these TODOs

Info

The front-end of this project was generated with Angular CLI.

This project uses the MEAN stack:

Prerequisites

  1. Install Node.js and MongoDB
  2. Install Angular CLI: npm i angular-cli -g
  3. From project root folder install all the dependencies: npm i

Run

  1. Command window 1: mongod: run MongoDB
  2. Command window 2: npm run be: run Express backend server (with autoreload)
  3. Command window 3: npm start: run Angular frontend (with autobuild and autoreload)
  4. Browser will automatically open to: localhost:4200

Production

Run npm run prod to run frontend with a production ready bundle.

Preview

Preview

Please open an issue if

  • you have any suggestion or advice to improve this project.
  • you noticed any problem or error.

To do

  • Tests

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor. Before running the tests make sure you are serving the app via ng serve.

Further help

To get more help on the angular-cli use ng --help or go check out the Angular-CLI README.

Author

About

Angular2 Booking admin component for setting Availability Price and minimun nights component

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published