Skip to content

vsb-vaj/template-lab-2023s-02

Repository files navigation

lab-02

Exercise for modules

  1. MOVE ALL FUNCTIONS and array from functions.js into separate files in folders utils and data - 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
  2. You should have only one implementation of every function. If you need specific function in different file, use export/import
  3. Don't forgot to import the moved functiosn again in the file functions.js TIP: When you run node functions.js it should give you the same output as for node test-functions.js

Exercise for Express

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

  1. Implement all the end points in the index.js

Bonus task:

  1. Implement bonus.js

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published