Skip to content

jellydn/express-vercel-starter

Repository files navigation

Welcome to express-vercel-starter 👋

Version License: MIT

Express.js v5 starter is a boilerplate for building and deploying Express.js applications to Vercel.

Demo

Built with

  • cors CORS is a node.js package for providing a Connect/Express middleware that can be used to enable CORS with various options.
  • express ^5.0.0-beta.1 Fast, unopinionated, minimalist web framework for Node.js.
  • helmet Helmet helps you secure your Express apps by setting various HTTP headers.
  • jsend - Utilities and middleware to assist with sending and handling jsend responses.
  • pino Very low overhead Node.js logger.
  • biome Biome is a formatter, linter, bundler, and more for JavaScript, TypeScript, JSON, HTML, Markdown, and CSS.
  • tsup Bundle your TypeScript library with no config, powered by esbuild.
  • tsx TypeScript Execute (tsx): Node.js enhanced with esbuild to run TypeScript & ESM files

Install

bun install

Usage

Initialize

git clone https://github.com/jellydn/express-vercel-starter

Develop

Create .env file from .env.example then run below command

bun run dev

Pre-commit

This project uses pre-commit to run pre-commit hooks. The pre-commit hooks will run the linter and formatter before committing.

pre-commit install

Build

bun run build

Deployment

Deploy with Vercel

Prerequisites

Steps

  1. Click on the "Deploy with Vercel" button on your project's repository page.

  2. If prompted, log in to your Vercel account or create a new account.

  3. Select the repository that you want to deploy.

  4. Change the output directory to . (dot) on your project's build settings. This will ensure that the built files are placed in the root directory of your project.

  5. Click on "Deploy." Vercel will automatically build and deploy your project.

    https://gyazo.com/c758e2b16f6c1e921c893dd3f0329b36.gif

  6. Your project should now be live and accessible at the URL provided by Vercel.

Useful links

Author

👤 Dung Huynh

Show your support

kofi paypal buymeacoffee

Give a ⭐️ if this project helped you!

About

Express.js v5 starter is a boilerplate for building and deploying Express.js applications to Vercel.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published