The following project is an example/boilerplate using fastify and its plugin system to "inject" mongoose
This is a fastify RESTful application to run a local server and insert/view some data on mongo
To execute the example you need to have node installed on your system
With the project source code on your pc, you can execute it by going to the root folder of the project and doing the following steps:
To install the dependencies you need to execute the following command
npm iCreate a .env file on the root folder with the following value
MONGODB_URI=mongodb://shop:password@localhost:27017/shop
npm run devThe application will be executed in http://localhost:3000 (and it will fail in case of having the port 3000 busy)