Followed path - https://medium.freecodecamp.org/how-to-build-blazing-fast-rest-apis-with-node-js-mongodb-fastify-and-swagger-114e062db0c9
Notes: src contains package.json so as node_modules
mongodb on fedora: sudo dnf install -y mongodb-org
Run mongoDB
Start mongoDB service and after run mongoshell to test connection
$ sudo service mongod start $ mongo MongoDB shell version: 4.0.0 connecting to: test