Restaurant Ordering Platform
- Dylan Chew
- Brett Dixon
- Tommy Do
- Jed Iquin
- Daniele Lisi
- Mr. Repo 🚜
- Latest Node JS https://nodejs.org/en/ installed on your machine.
To run the webapp make sure you pull the latest commit from our develop branch then:
-
In the terminal:
cd
into the Dagobah project folder. -
Run
npm run dagobah
to automatically install all the dependencies, build the project for production, and run the server. -
Wait for the terminal to display the message:
Server is running on port 3000
Welcome to Dagobah Diner.
-
The server is running, proceed to the Order | Kitchen | Admin section to use the app.
- Open your browser and type
localhost:3000
to access the order page. - Add items to your cart and confirm the order to receive your receipt. This will add the order to the kitchen queue.
- Open your browser and type
localhost:3000/orderview
to access the orders in process page.
- Open your browser and type
localhost:3000/login
to access the login page for the kitchen. - Type kitchen in the username input and dagobahtech for the password to login.
- Open your browser and type
localhost:3000/login
to access the login page for the admin. - Type admin in the username input and dagobahtech for the password to login.
Before running the tests, make sure the node server is running in a separate terminal window.
To start the server, run npm start
in the project root folder.
In a new terminal window, run npm run test
from the root folder to start jest unit testing.
Make sure to have already installed the latest version of Firefox web browser on your machine.
- Download the appropriate FirefoxDriver for you OS from here: Firefox Driver
- Extract the archive and move the file into the
bin
folder in the project root folder. - Edit
nightwatch.json
line 16 adding the path for the driver file (e.g."webdriver.gecko.driver" : "./bin/geckodriver"
). On Windows, make sure to add the .exe extension at the end. - In a new terminal window, run
npm run test:firefox
from the root folder to start Nightwatch functional testing.