Getting Started
System Requirements
Analog requires the following Node and Angular versions:
- Node 16.17.0, or v18.13.0 and higher is recommended
- Angular v15 or higher
Creating a New Application
To create a new Analog project, you can use the create-analog
package with your package manager of choice:
- npm
- Yarn
- pnpm
npm create analog@latest
yarn create analog
pnpm create analog
You can also scaffold a new project with Nx.
Serving the application
To start the development server for the application, run the start
command.
- npm
- Yarn
- pnpm
npm run start
yarn start
pnpm start
Visit http://localhost:5173 in your browser to view the running application.
Next, you can define additional routes using components for navigation.
Building the Application
To build the application for deployment
- npm
- Yarn
- pnpm
npm run build
yarn build
pnpm run build
Build Artifacts
By default, Analog comes with Server-Side Rendering enabled.
Client artifacts are located in the dist/analog/public
directory.
The server for the API/SSR build artifacts is located in the dist/analog/server
directory.