-
To ensure you have Yeoman installed, open a command prompt and enter:
yo --versionIf this is not already installed, run:
npm install -g yo
!!! Note
If you're on Linux or MacOS, you might need to run the following commands using sudo.
-
Install the latest version of the Alfresco Yeoman Generator ADF App:
npm install -g generator-alfresco-adf-app@latest -
Install the Angular CLI:
npm install -g @angular/cliAngular CLI makes it easy to create components, libraries, and more. You can check what version of the installed version Angular CLI you have installed by using the
ng vcommand in the terminal. -
Generate the application:
yo alfresco-adf-app -
Enter a name and choose Content Services as the application blueprint and then enter
Yto install the dependencies.The Yeoman generator creates a new project and installs all dependencies required for your application.
Note
The Yeoman generator creates a new directory for your project. You must work within this directory.
-
To configure the application to work with Content Services, open the
proxy.conf.jsfile in a code editor. -
Modify
"target": "http://localhost:8080"so that it matches your Content Services URL and then save the file.You don't need
/alfrescoat the end of the target URL. For example, if you've launched Alfresco Content Services using Docker Compose, your Alfresco Content Services repository might be available athttp://localhost:8080/alfresco. In this case, yourproxy.conf.jsonfile might look like:module.exports = { "/alfresco": { "target": "http://localhost:8080", "secure": false, "changeOrigin": true } };Note
If you're running an online trial, the Content Services URL is provided in the welcome email.
For the online trial, the
proxy.conf.jsonfile might look like:json module.exports = { "/alfresco": { "target": "https://xyz.trials.alfresco.com", "secure": false, "changeOrigin": true } };