- MOVE ALL FUNCTIONS and array from
functions.jsinto separate files in foldersutilsanddata- split it by comments above functions- function for converting color in hex format -> move into
utils/colors.js - move math functions into
utils/math.js - same for another types of functions
- function for converting color in hex format -> move into
- You should have only one implementation of every function. If you need specific function in different file, use export/import
- Don't forgot to import the moved functiosn again in the file functions.js
TIP: When you run
node functions.jsit should give you the same output as fornode test-functions.js
Before you can do anything, run npm install to install the dependencies as described in package.json
You can start your web server by running node index.js
- Implement all the end points in the index.js
- Recommended tool for sending requests: Postman https://www.postman.com/downloads/
- How to send a Post request in Postman

- Implement bonus.js