This repository implements a Node/Express API that serves up static sample blog post data, configured for deployment on Vercel.
This API is intended for use as a back-end to serve data to the front-end code in my NextJS Blog repository.
Live Vercel Deployment: https://express-api-for-vercel-garyesmith.vercel.app/posts
- Node (tested with v16.10.0)
- NPM (tested with v7.24.1)
npm install
node index.js
-
GET
http://localhost:3000/
for API status. -
GET
http://localhost:3000/posts
for sample blog data.
Thank you to this simple guide for the handy tips about configuring Vercel to deploy an Express app.