A Vapor swift backend server for the Ordering, Kitchen, Billing and Advertising aspects of a restaurant.
Address: http://localhost:8080/
Setting Up and Using the Server:
- Run the Xcode Project (make sure Run scheme and mac is selected as your device).
- Visit http://localhost:8080/ on your browser. This is the home page of the server. If you visit the billing or kitchen links on the website, it will be blank as no orders have been sent, yet.
- Also, there are no menu items on the servers menu. You could add custom menu items using the RestaurantAdmin mac app. For now, let’s just load a few preset items. Go to your terminal and type the following command and press enter -> curl -X POST http://localhost:8080/init.
- It show a response stating that sample items have been initialised.
- You can now use the iOS app to order the loaded items.
- After ordering, the kitchen route will show the orders sent to the kitchen. On serving the order, press the ’served’ button.
- Now the served orders will be present in the bills route. This part is for the billing counter, where the customer can pay the bill.
Thank you