+ 3
API
I wish to program a good API with NodeJs. How can I proceed please
4 Answers
+ 3
You will need at least
Node.js
Express
Something for GUI
HTML
CSS
JavaSript
https://www.freecodecamp.org/news/building-a-simple-node-js-api-in-under-30-minutes-a07ea9e390d2/
+ 3
JaScript you are listing the components of a full web application.
For the backend API, a http server is technically sufficient.
Simplest API example I found:
https://dev.to/bipon68/create-a-rest-api-in-nodejs-1lpm
The most commonly used web server framework is Express.js but there are also other alternatives, and there are some typical combinations with the frontend for example Vue+Nuxt.
https://solguruz.com/blog/top-expressjs-alternatives
Designing a good API also requires us to use the common industry best practices. This involves many topics like
- versioning the API
- naming the routes correctly using singular and plural nouns
- using the correct HTTP methods
- error handling and error codes
- documentation, eg. Swagger
This article is quite comprehensive:
https://www.freecodecamp.org/news/rest-api-design-best-practices-build-a-rest-api/
+ 2
Thank you all
0
How to do landing project of we b