Solution: lb_tinyurl

Express.js·1 min read·May 1, 2025

Here is the commented solution for this project.

Set up the project

The objective of this part is to set up the project directory by creating the files and installing the required packages.

  1. Create and enter the project directory.

    $ mkdir lb_tinyurl$ cd lb_tinyurl
  2. Create the files.

    $ touch server.js server_error.js error_codes.json error_handler_middleware.js
  3. Initialize the project.

    $ npm init