I'm new in this area, however I would like to know, if it is better to put api inside my project, or create one back-end separate and pull into the project. I know if I use a separate back-end I will have to buy 2 hosting, if I use it within my project it would be one.
back-end integrated into the project
I tried to do both ways, and apparently it worked, but I would like to know if it is recommended to put the back-end inside the front-end