Skip to content

Diptabose/create-ts-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prebuilt Typescript Express Server CLI

A fast and opinionated Node.js CLI tool to scaffold a prebuilt Typescipt express server with TypeScript, Express, and a ready-to-use folder structure. Perfect for quickly starting backend projects with all essential boilerplate in place.


Features

  • Create a project root folder with a valid name.
  • Initialize npm package with "type": "module".
  • Automatically install dependencies:
    • express, cors
  • Automatically install dev dependencies:
    • typescript, nodemon, @types/express, @types/cors
  • Prebuilt TypeScript project setup with tsconfig.json.
  • Generates a src folder with subfolders:
    • controllers, middlewares, routes, services, types, utils
  • Creates an index.ts file to start coding immediately.
  • Provides npm scripts for build and development:
    • npm run build:watch – watch and compile TypeScript
    • npm run dev:watch – start server in watch mode

Installation

Make sure you have Node.js v18+ installed.

# Clone the repository
git clone https://github.com/Diptabose/create-ts-server.git
cd create-mer-server

About

A npx command to scaffold a Typescript server with best practices and folder structure

Resources

License

Stars

Watchers

Forks

Packages

No packages published