9951 explained code solutions for 126 technologies


expressjsHow can I use the Express Typescript Starter to create a new project?


To use the Express Typescript Starter to create a new project, follow these steps:

  1. Install the Express Typescript Starter with the command:
$ npm install -g express-generator-typescript
  1. Create a new project directory and navigate to it:
$ mkdir my-project && cd my-project
  1. Generate a new Express Typescript project:
$ express-generator-typescript --no-view
  1. Install the project dependencies:
$ npm install
  1. Compile the project:
$ npm run build
  1. Start the project:
$ npm start
  1. Visit the project in your browser:
http://localhost:3000

You should now have a new Express Typescript project running on your machine.

Helpful links

Edit this code on GitHub