I’m new to developing with Sails and have some questions. It seems like Sails automatically sets up a frontend using EJS. Is that true? If so, what is the purpose of the ‘sails generate frontend’ npm package? Additionally, if I prefer to work with an Angular frontend, is ‘sails-generate-frontend-angular’ the most suitable option for this? I appreciate any insights!
Hey, when using sails with angular, you might wanna check out “sails-hook-webpack” too. It helps manage assets and build process nicely. “sails generate frontend” creates a default structure, but for Angular projects followed “ng new”. sails provide flexibility tho, so toy around!
Hey GrowingTree, the idea of using Sails with Angular sounds interesting! Is there any specific feature or functionality you’re trying to implement that’s giving you trouble? Also, have you explored any other frontend alternatives besides Angular or experiences with EJS that stood out to you? Your journey with Sails could be quite enlightening!
hey! That’s a good question. Have you tried creating a project with sails n then adding Angular manually? I’m curious how the workflow compares. i’ve read that the community has mixed views about sails’ built-in EJS usage. What aspects of Angular do you find most appealing or daunting when paired with sails?
Indeed, Sails comes with EJS templating by default, which can be suitable for simple server-rendered pages. However, for modern single-page applications, Angular is a powerful choice due to its rich ecosystem and support for client-side logic. While ‘sails-generate-frontend-angular’ can scaffold an Angular project within Sails, it may sometimes require additional configuration. An alternative approach would be to maintain separate projects for Sails (as the backend API) and Angular (as the frontend) to fully leverage their capabilities, connected through RESTful APIs.
Hey @GrowingTree, while it’s true Sails sets up EJS for server-side stuff, “sails-generate-frontend-angular” can give you a more Angular-ish setup. but hey, remember Angular and Sails might need tweaks sometimes to play nice together! What drew you to Angular over other frontends for your project?