Create and Deploy a Node.js/Express App with UI for Free with Vercel

How to deploy your own Express Node.js App from GitHub to Vercel

Duc N.
Duc N.
Nov 7 · 2 min read
Image for post
Image for post

Disclosure: I have no affiliation or investment in any company mentioned in this post. This is just my experience.

I assume you have some experience with Node.js, Express and have signed up for a free Vercel account.

Vercel (zeit) has been working fine for me for a while. The problem is there are different ways on the internet to set it up and most of them doesn’t work for me anymore, maybe due to changes from Vercel. But I’m glad this setup works now.

Github repository link:
- https://github.com/ngduc/vercel-express

First, clone the above repository to a local directory. Set up vercel command line and run “vercel” command to deploy the project:

Set up & Deploy with Vercel

app/index.js

  • If you’re using Typescript with node, build your source directory (using a tool like “tsc” command line from “typescript” package), output to “app”.
  • Update package.json: “main”: “app/index.js”

vercel.json

  • Map API routes (/api/…) and static (UI) routes (/…).

Now you have a full-stack web application deployed to the Internet using Vercel!

Happy coding!

Links:
- This official article describes more in details about Vercel and Express — https://vercel.com/guides/using-express-with-vercel
- Github Repo — https://github.com/ngduc/vercel-express

JavaScript In Plain English

New JavaScript + Web Development articles every day.

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store