DEV Community

Discussion on: Designing a better architecture for a Node.js API

Collapse
songthamtung profile image
songthamtung

Typically for architecture related posts, there's a high level diagram of what's happening. I don't see any here. Consider adding one 🙂.

Collapse
pacheco profile image
Thiago Pacheco Author

Thank you for your suggestion, I am going to add that.

Collapse
javamhan profile image
Norbin Astrero

Hi can you help me test the API using insomia.
What would be my URL for POST?

Thanks in advance!

Thread Thread
pacheco profile image
Thiago Pacheco Author

Hi Norbin,

You can test the app sending a post request to localhost:5000/api/post

Thread Thread
javamhan profile image
Norbin Astrero

Yes done i've already did that, I also tried localhost:5000/api/getAll.

Im getting error below.

Cannot POST /api/post
Cannot GET /api/getAll