/Task

Primary LanguageJavaScript

Task

To run project on your local environment you have to do the following steps

  1. Copy repo to your local machine:

git clone https://github.com/agwisniewska/PiLabTest.git

  1. Go to copied directory and install npm dependencies

npm install

  1. Open new tab in your terminal and run MongoDB

    mongod

  2. Run application

npm start

  1. Open browser and type localhost: 127.0.0.1:8080

To run tests you have to do the following steps

  1. Go to the directory and run application

npm start

  1. Run Selenium Server. Open new tab in your terminal and type

webdriver-manager start

  1. Open another tab in the terminal and type

npm test

To send POST request to app please use the following command

curl -H "Content-Type: application/json" -X POST -d '{"name": "tips","class": "a","icon": "question","title": "Tips","titletext": "Set: Tips","content": "Type: Deposit","additional": "","href": "/#/breadcrumbs/tips","template": "You are on tips page. Check console!"}' http://127.0.0.1:8080/api/breadcrumbs