Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions starter/node-server/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules/
.vercel
dist
*.log
.DS_Store
36 changes: 36 additions & 0 deletions starter/node-server/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Node.js Server Starter

Deploy your Node.js HTTP server to Vercel with zero configuration.

[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?demo-description=Deploy%20a%20Node.js%20HTTP%20server%20with%20zero%20configuration.&demo-title=Node.js%20Server%20Boilerplate&from=templates&project-name=Node.js%20Server%20Boilerplate&repository-name=node-server-boilerplate&repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fexamples%2Ftree%2Fmain%2Fstarter%2Fnode-server&skippable-integrations=1)

Visit the [Node.js on Vercel documentation](https://vercel.com/docs/functions/runtimes/node-js) to learn more.

## Getting Started

Install the required dependencies:

```bash
pnpm install
```

## Running Locally

Start the development server on http://localhost:3000

```bash
pnpm dev
```

## Deploying to Vercel

Deploy your project to Vercel with the following command:

```bash
npm install -g vercel
vercel --prod
```

Or `git push` to your repository with our [git integration](https://vercel.com/docs/deployments/git).

To view the source code for this template, [visit the example repository](https://github.com/vercel/examples/tree/main/starter/node-server).
16 changes: 16 additions & 0 deletions starter/node-server/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "node-server",
"repository": "https://github.com/vercel/examples.git",
"license": "MIT",
"private": true,
"type": "module",
"scripts": {
"dev": "tsx src/server.ts",
"type-check": "tsc --noEmit"
},
"devDependencies": {
"@types/node": "^22.13.10",
"tsx": "^4.19.2",
"typescript": "^5.8.3"
}
}
329 changes: 329 additions & 0 deletions starter/node-server/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading