20 |
21 | To create an application with prerendering capabilities from the beginning use the [`ng new --ssr`](tools/cli/setup-local) command.
22 |
23 |
24 |
25 | Once SSR is added, you can generate the static pages by running the build command:
26 |
27 |
50 |
51 | When you run `ng new my-first-project` a new folder, named `my-first-project`, will be created in the current working directory.
52 | Since you want to be able to create files inside that folder, make sure you have sufficient rights in the current working directory before running the command.
53 |
54 | If the current working directory is not the right place for your project, you can change to a more appropriate directory by running `cd
`.
55 |
56 |
57 |
58 | ### Workspaces and project files
59 |
60 | The [ng new](cli/new) command creates an *Angular workspace* folder and generates a new application skeleton.
61 | A workspace can contain multiple applications and libraries.
62 | The initial application created by the [ng new](cli/new) command is at the top level of the workspace.
63 | When you generate an additional application or library in a workspace, it goes into a `projects/` subfolder.
64 |
65 | A newly generated application contains the source files for a root module, with a root component and template.
66 | Each application has a `src` folder that contains the logic, data, and assets.
67 |
68 | You can edit the generated files directly, or add to and modify them using CLI commands.
69 | Use the [ng generate](cli/generate) command to add new files for additional components and services, and code for new pipes, directives, and so on.
70 | Commands such as [add](cli/add) and [generate](cli/generate), which create or operate on applications and libraries, must be executed from within a workspace or project folder.
71 |
72 | * See more about the [Workspace file structure](guide/file-structure).
73 |
74 | #### Workspace and project configuration
75 |
76 | A single workspace configuration file, `angular.json`, is created at the top level of the workspace.
77 | This is where you can set per-project defaults for CLI command options, and specify configurations to use when the CLI builds a project for different targets.
78 |
79 | The [ng config](cli/config) command lets you set and retrieve configuration values from the command line, or you can edit the `angular.json` file directly.
80 |
81 |