Challenge link: https://www.freecodecamp.org/learn/apis-and-microservices/managing-packages-with-npm/how-to-use-package-json-the-core-of-any-node-js-project-or-npm-package
I don’t understand how to integrate all the files provided in this GitHub Repo GitHub - freeCodeCamp/boilerplate-npm: A boilerplate for the freeCodeCamp curriculum. with latest angular version in order to start the certification challenge.
What I have done so far:
When I want to open it with ng serve --open it gives me “The serve command requires to be run in an Angular project, but a project definition could not be found.”
I have also created a new angular project with “ng new timestamp-microservice” but that creates a project in the mentioned folder which does not include the boilerplate-npm files.
Thanks in advance for your solutions.
It is great you want to further the project outside the scope of the lessons. However, this boilerplate is as simple as possible, because the lessons focus on teaching
npm (Node Package Manager).
I am not sure what you would gain from adding Angular to the project, as you do not use the frontend during these lessons.
Hope this makes sense.
I see. I thought I was supposed to install a framework and make my project within it from top to bottom.
Thank you very much for the prompt answer!
These lessons are very simple, and you do not end up with much of an app, after completing them.
Fortunately, the 5 projects at the end of the section are more complex, and do require a frontend. For these, it would absolutely make sense to integrate a frontend framework.
I am unsure how to do this with Angular, but I cannot imagine it requires much more than:
- Install Angular
- Set config to watch files in new
- Build to public
- Serve public assets
I will mention this: This curriculum teaches the MERN stack; you are welcome to replace React with Angular, but it is expected you will use Node and Express to serve your app. Otherwise, for this section, you are not really following the curriculum, and cannot expect the tests to be reliable.
Anyway. Continue on your way, and be sure to pop by, if you later get stuck.
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.