Generate project from framework template
PyCharm can create new framework-specific applications for you, set up their structure, and download the required packages, if necessary. You can also use the Yeoman generator. For more information, refer to Yeoman.
AngularJS application
Before you start:
Install and enable the AngularJS plugin on the Settings | Plugins page, tab Marketplace, as described in Installing plugins from JetBrains Marketplace.
Click Create New Project on the Welcome screen or select from the main menu. The New Project dialog opens.
In the left-hand pane, choose AngularJS.
In the right-hand pane, specify the path to the folder where the project-related files will be stored.
When you click Create, PyCharm generates the AngularJS-specific project structure with all the required configuration files based on the AngularJS seed project
Download the AngularJS dependencies that contain the AngularJS code and the tools that support development and testing: in the embedded Terminal (Alt+F12) , type:
npm installLearn more about installing dependencies in the Install Dependencies section of the readme.md file.
HTML5 Boilerplate or Bootstrap application
Click Create New Project on the Welcome screen or select from the main menu. The New Project dialog opens.
In the left-hand pane, choose the template to use depending on your preferences and the functionality to be implemented in your application:
HTML5 Boilerplate: select this option to use the HTML5 Boilerplate template. This is a starting project template that can be easily adapted to your needs.
Bootstrap: select this option to use a Bootstrap template, which is an elaborate modular toolkit with rich HTML, CSS, and JavaScript support.
The set of controls in the right-hand pane depends on the chosen template.
Specify the path to the folder where the project-related files will be stored.
From the Version list, choose the template version to use and click Create.
Express application
Before you start:
Install Node.js and configure it as a local Node.js interpreter.
Make sure the Node.js plugin is enabled in the settings. Press Ctrl+Alt+S to open settings and then select . Click the Installed tab. In the search field, type Node.js. For more information about plugins, refer to Managing plugins.
To generate a Node.js application
Click Create New Project on the Welcome screen or select from the main menu. The New Project dialog opens.
In the left-hand pane, choose Express.
In the right-hand pane, specify the following:
The path to the folder where the project-related files will be stored.
The Node interpreter, refer to Configuring a local Node.js interpreter.
The package manager to use - npm or Yarn, refer to npm, pnpm, and Yarn.
The express -generator.
It is recommended that you use npx that downloads and runs the generator. To do that, select npx --package express-generator express from the express -generator list.
Alternatively, open the embedded Terminal (Alt+F12) and type
npm install --g express-generatorand then select the downloaded generator from the express-generator list.The Express template engine to use. From the Template engine list, choose one of the following:
The CSS engine to use. From the CSS engine list, choose one of the following:
Click Create, when ready.
PyCharm launches the Express Project Generator tool that downloads all the required data, sets up the project structure, and opens the project either in the current window or in a new one, depending on your choice.
React application
The recommended way to start a new React single page application is the create-vite package, which PyCharm downloads and runs for you using npx. As a result, your development environment is preconfigured to use Vite with React and TypeScript, learn more from the Vite official website.
Click Create New Project on the Welcome screen or select from the main menu. The New Project dialog opens.
In the left-hand pane, choose Vite.
In the right-hand pane:
Specify the path to the folder where the project-related files will be stored.
In the Node Interpreter field, specify the Node.js interpreter to use. Select a configured interpreter from the list or choose Add to configure a new one.
From the Vite list, select npx create-vite.
From the Template list, select
react.Optional:
To use TSX instead of JSX, select the Create TypeScript project checkbox. PyCharm will generate .tsx files for your application and a tsconfig.json configuration file.
When you click Create, PyCharm generates a React-specific project with all the required configuration files.
Vue.js application with @vue/cli
Click Create New Project on the Welcome screen or select from the main menu. The New Project dialog opens.
In the left-hand pane, choose Vue.js.
In the right-hand pane:
Specify the path to the folder where the project-related files will be stored.
In the Node Interpreter field, specify the Node.js interpreter to use. Select a configured interpreter from the list or choose Add to configure a new one.
From the Vue CLI list, select npx --package @vue/cli vue.
Alternatively, for npm version 5.1 and earlier, install the
@vue/clipackage yourself by runningnpm install --g @vue/cliin the Terminal Alt+F12. When creating an application, select the folder where the@vue/clipackage is stored.From the Project template list, choose the Vue.js template to use.
When you click Create, PyCharm asks you some additional questions about tools, like linters and the test runner, that can be added to the project. These questions vary depending on the template you've selected. After that, PyCharm generates a Vue.js-specific project with all the required configuration files.