Recently I have been learning NodeJS for some time. I just watch videos and practice projects on the Internet. I have to practice more to learn NodeJS, otherwise I will forget it soon. Through learning, I want to write interface, and then check the NodeJS API writing method on the Internet, and the local practice is successful. And then want to link database through node interface call, combined with recent learning, their own hands step by step to achieve the basic add, delete, change and check function, simple code, but also hope for more advice.

NPM init, NPM install Express, NPM install mongodb

The second step is to implement a simple API locally and debug successfully using basic HTML calls

Step 3: Implement Node to connect to MongoDB database

The fourth step, combined with the second step and the third part, the realization of the interface to connect the database to achieve the basic add, delete, change and check function

The fifth step, front-end call API, interface joint tuning

Basic style of implementation:

Node.js: Connect to MongoDB

Node builds the server and writes a simple interface, tuning interface