+ 3

API

I wish to program a good API with NodeJs. How can I proceed please

1st Mar 2024, 9:41 PM
Stephane Nguene
4 Respostas
+ 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/
2nd Mar 2024, 12:31 AM
JaScript
JaScript - avatar
+ 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/
2nd Mar 2024, 4:28 AM
Tibor Santa
Tibor Santa - avatar
+ 2
Thank you all
3rd Mar 2024, 6:58 PM
Stephane Nguene
0
How to do landing project of we b
3rd Mar 2024, 4:30 AM
Sagalcheema 1234
Sagalcheema 1234 - avatar