---
title: "Writing Node.js Scripts in DreamFactory | DreamFactory"
description: "How to attach Node.js logic to a generated API endpoint, covering where the script runs in the request lifecycle and what it can reach. The JavaScript…"
url: "https://www.dreamfactory.com/videos/nodejs-scripts"
---

[Home](https://www.dreamfactory.com/) › [Videos](https://www.dreamfactory.com/videos) › Writing Node.js Scripts in DreamFactory

# Writing Node.js Scripts in DreamFactory

Tutorial·19 May 2016·6 min 6 sec

How to attach Node.js logic to a generated API endpoint, covering where the script runs in the request lifecycle and what it can reach. The JavaScript counterpart to the Python and PHP scripting tutorials.

**Recorded in 2016.** The concepts still apply, but the interface shown predates the current DreamFactory release. Some steps may differ in the current release.

## What you’ll learn

* Attaching Node.js logic to a generated endpoint
* Where the script runs in the request lifecycle
* What the script can reach and modify

[Book a Demo](https://www.dreamfactory.com/demo)[More on our YouTube channel](https://www.youtube.com/@DreamfactoryAPI)

## More videos

* [Turning a SOAP Web Service into a REST API](https://www.dreamfactory.com/videos/soap-to-rest-api)
* [Using Server-Side Scripts on API Endpoints](https://www.dreamfactory.com/videos/server-side-scripts)
* [Adding API Aliases to SQL Fields](https://www.dreamfactory.com/videos/sql-field-api-aliases)
* [Creating Calculated Virtual SQL Fields](https://www.dreamfactory.com/videos/calculated-virtual-sql-fields)

[Browse all videos ›](https://www.dreamfactory.com/videos)

Video: https://www.youtube.com/watch?v=uKnGuOa1v6E
