3 Exercises in Javascript
- Simple API Service
- Find Pairs Algorithm
- Find Permutations Algorithm
Make sure Node.js is installed node -v. If not, install below.
From CLI:
git clone https://github.com/AliceWonderland/Kindur-App.gitcd Kindur-Appnpm install
cd servernpm installnpm run startcurl -X POST -H "Content-Type: application/json" -d '{"message": "foo"}' http://localhost:4200/api/messagescurl http://localhost:4200/api/messages/2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7aecurl -i http://localhost:4200/api/messages/oop- http://localhost:4200/api/messages
curl -X POST -H "Content-Type: application/json" -d '{"message": "foo"}' http://json.alicechuang.com/api/messagescurl http://json.alicechuang.com/api/messages/2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7aecurl -i http://json.alicechuang.com/api/messages/oop- http://json.alicechuang.com/api/messages
npm run pairsnode scripts/findPair.js assets/prices.txt 2500npm run test-pairs
npm run variationsnode scripts/findVariations.js '10X10X0'npm run test-variations
- Run all tests
npm run tests
- Node (NPM v5.6.0+ and Node v8.9.4+) https://nodejs.org/en/download/
- Javascript ES6 (Language)
- Jest (Test Suite) https://facebook.github.io/jest/
- See
server/README.mdfor API details.