angular install scully

angularscully

To install Scully in an Angular project, follow these steps:

  1. Make sure you have the latest version of Node.js and npm installed on your system.
  2. Open a terminal window and navigate to the root directory of your Angular project.
  3. Run the following command to install Scully and its dependencies:
npm install -g @scullyio/init
  1. Run the following command to create a scully.config.js file in the root directory of your project:
scully init
  1. Modify the scully.config.js file to specify your routes and any other configuration options you need.
  2. Run the following command to generate static HTML files for your routes:
npm run scully
  1. Serve the static HTML files using a web server, such as http-server. You can install http-server using the following command:
npm install -g http-server

Then, run the following command to start the server:

http-server dist/static

This will serve the static HTML files at http://localhost:8080.

Note: These instructions assume that you are using the Angular CLI to create and manage your Angular project. If you are not using the Angular CLI, you may need to adjust the steps accordingly.