Task
To run project on your local environment you have to do the following steps
- Copy repo to your local machine:
git clone https://github.com/agwisniewska/PiLabTest.git
- Go to copied directory and install npm dependencies
npm install
-
Open new tab in your terminal and run MongoDB
mongod
-
Run application
npm start
- Open browser and type localhost: 127.0.0.1:8080
To run tests you have to do the following steps
- Go to the directory and run application
npm start
- Run Selenium Server. Open new tab in your terminal and type
webdriver-manager start
- 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