this is an Express.js Template with Typescript that you can use if you want to deploy Express.js App to Vercel
You can see this project already deployed at this link
-
Clone Repository
git clone https://github.com/andrianfaa/expressjs-serverless-function
if you don't want to use TypeScript, you can use Javascript in Branch
with-javascript
-
Install Dependencies
# with yarn $ yarn install # or with npm $ npm install
it will automatically create a
config
folder containing the.env.development
. file -
Run the development Server
# with yarn $ yarn dev # or with npm $ npm run dev
Server will running on port
5000
if you want to deploy your app to Vercel, don't forget to edit templateEnv
in setup.sh
file