davicorreiajr / hello-world-node

Study in node
0 stars 0 forks source link

Add more boilerplate features #2

Open lucasmafra opened 5 years ago

lucasmafra commented 5 years ago

Hi @davicorreiajr,

Congrats for this hello-world. Maybe you could add a couple more features in order to make it more useful as a boilerplate for node projects though. Here are some things I think would be important to add to this project at some point:

1) Endpoint schema validation. If you're looking for some "standard" library for that in Node, joi is probably the way to go.

2) API docs. I strongly recommend Swagger for that.

3) HTTP-level Error handling. I would use a middleware for that.

4) Endpoint-level authorization. I would do that with middleware as well.