- Install https://nodejs.org/en/
- Download archive from link provided
- Unzip file and cd into it
- run
npm install
node app.js
Visit http://localhost:8080 in your browser
- Multiple users should be able to view the shared public todo list
- Should be able to add items
- Should be able to delete items
- Should be able to edit items (Missing feature)
- Must be able to deploy in docker (Missing feature)
- Add missing requirement #4 to the application
- Add sufficient test coverage to the application and update readme on howto run the tests
- Add missing requirement #5 to the application (Dockerfile and update readme with instructions)
- Display test coverage after tests are executed
- Find and fix the XSS vulnerability in the application. Also make sure that it wont happen again by including a test.
- Update the code as needed and document what you have done in the readme below
- Will be nice if you can git tag the tasks by number
Explain what you have done here and why...
Oh boy this was tough, I don't like node that much and also very little experience with testing
-
Added the edit function to existing array, similar to the delete function it just adds in the new value thats taken from the html code Click the pencil on the new task and it will spawn a new edit textbox to edit the relevant item, thanks for the loop
-
Added testing with some help, uses mocha and chai framework. Opens a connection to the server and executes the task against the relevant function. Script added to the overall project function, run with:
npm run test
-
Dockerfile added to containerise application:
docker build -t todo-app .
docker run -it -p 8080:8080 todo-app
-
Didn't get round to bonus XSS stuff
-
Attempted to create a helm chart for minikube but stuck with a current bug where tiller doesnt install to minikube correctly, not enough time to debug and fix. Basically the exisiting tiller.yaml file references the incorrect api and the spec is incorrect.