npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

create-express-with-typescript

v2.0.1

Published

Create Express app is a tamplate which is use to Create a express app templete api

Downloads

109

Readme

What is Create-express-with-typescript

Create express with typescript is a template That is used to create a quick basic template with a typescript application without any configuration. It's easy to use and does not need to headache to install the multiple dependencies which are required every time when you create a new project structure. You don't need to set up a command and configuration file.

Installation

If you want to create a basic structure in express app with typescript You just run only one command on our terminal. But make sure Node js is already installed in your system. And also npm version is5.0 or later

🚀 Usage

Run the below command on the terminal and install the Express application Boilerplate code with all the configurations.

npx create-express-with-typescript app-name

Function Base VS Class Base Express Server.

There are two type of express server 1. Function Base Server 2. Class Base Server. If you want to create a class base server choese the option and hit enter.

How to Start Function Base Application Server.

If you look up the script section on the package.json file you can get four command Start build dev and test If you want to start the Server you should run

npm run start

npm run start or npm start command starts your Application Server.

How to Start Class Base Express Server.

If you look up the script section on the package.json file you can get four command Start build dev and test If you want to start the Server you should run

npm run start

npm run start or npm start command starts your Application Server.

npm run dev

npm run dev command is start you Server in devlopment mode. When you start your server in dev command. Changes reflect instantly when you save the file.

How to Create a build in Typescript-Express

if you want to create a build in the Typescript-Express application you just run only one command, This command generates a build in the dist directory which is presented in your current working directory.

  npm run build

How to start a server in development Mode

We are already Handel your development repeatability to build start and restart our server every time. You only need to run one command and start building our application when you save the file application is rebuilt and restarted automatically.

 npm run dev

Configuration Json File

  • You can change our name As per your requirement
  • You can change Version as well if you have needed
  • You can remove the bin command because it's does't need any more when you application successfully generated.
  • You can also change author name
{
  "name": "create-express-with-typescript",
  "version": "1.0.0",
  "description": "Create Express app is a tamplate which is use to Create a express app templete api",
  "main": "app.js",
  "bin": {
    "create-express": "./bin/createExpress.js"
  },
  "private": "true",
  "scripts": {
    "start": "npx tsc && nodemon dist/app.js",
    "build": "npx tsc",
    "dev": "concurrently \"npx tsc --watch\" \"nodemon -q dist/app.js\" ",
    "test": "jest"
  },
  "keywords": ["create-express-app", "express-app-template"],
  "author": "Aadarsh Singh",
  "license": "ISC",
  "dependencies": {
    "bcrypt": "^5.1.0",
    "cors": "^2.8.5",
    "dotenv": "^16.0.3",
    "express": "^4.18.2"
  },
  "devDependencies": {
    "@types/express": "^4.17.14",
    "@types/jest": "^29.2.2",
    "@types/node": "^18.11.9",
    "concurrently": "^7.5.0",
    "nodemon": "^2.0.20",
    "supertest": "^6.3.1",
    "ts-jest": "^29.0.3",
    "typescript": "^4.8.4"
  }
}

Above some dev dependency as well as dependency some of the dependency is required to run the express application Like express @types/express nodemode Typescript and @types/node So you can't remove these dependency. And other dependency you can remove as per your requirement.

📝 License

Copyright © 2019 Aadarsh Singh. This project is MIT licensed.

Author

👤 Aadarsh Singh

Aadarsh Singh Github NPM