Deploy ExpressJS API Server

ExpressJS API Starter with basic examples

Deploy ExpressJS API Server

Just deployed

ExpressJS API Server

This is a boilerplate/starter project for quickly building RESTful APIs using Node.js and Express, written in JavaScript. It will help you get started with a simple to follow format with some examples for routes, logging and middleware.

Features
  • Morgan - HTTP request logger middleware for Node.js
  • CORS - Middleware to enable CORS with options.
  • Example logger to create or redirect your logs to the service of your choice
  • Example middleware to further expand to use for auth
  • Nodemon to help develop locally.
Details

The server runs a simple Express API server.

/ returns status: ok

/hello returns message: Hello World!

Unknown endpoints are handled in a middleware file.

The hello route is defined in the helloRoute


Template Content

More templates in this category

View Template
NEW
Openfront Gym
Opensource Mindbody alternative based on Next.js and Keystone.js

Openship
0
View Template
open-excalidraw
Self-hostable collaborative drawing built on Excalidraw

Prateek Mohanty
5
View Template
Next.js + Prisma + PostgreSQL Starter
Deploy a Next.js app with Prisma ORM and PostgreSQL in one click.

blueorange
0