/jimsegal-api

API for jimsegal.com

Primary LanguageJavaScript

Jim Segal API

An ExpressJS web server built on NodeJS.

Local development

Run the server

To start a local server, run the following command:

  npm run dev

Run the server with breakpoints

To stop processing in the server at any point, add a debugger to the code and start the server with the following command:

  npm run debug

Repl

Even when running in debug mode, to access any runtime variables you will need to do so by entering the repl with the following command:

  repl

Viewing API

Open a web browser to the following address:

http://localhost:8001

This is the default port, and could be altered if defined in process.env.PORT via the dotenv file.