DEV Community

Vijay Kumar
Vijay Kumar

Posted on

Utilising reusable API logic into Node App

When building backend services for a project ,there will be instances where we write similar API logic .
Generally we save code snippets in git or use custom starter templates which we utilise in various projects.


But do you know we can utilise the same API logic by installing npm modules private to you ?

Here comes Vratix private api modules, where we can install our own private registry and get full ownership of the code.


Steps :

npx vratix login
Enter fullscreen mode Exit fullscreen mode
  • Write your API modules, they provide github templates ,fork it and modify your API logic and link it to your Vratix account.
npx vratix module new
Enter fullscreen mode Exit fullscreen mode
  • Connect a github repo to Vratix Dashboard and it automatically pulls updates to your modules. or using cli to publish the registry.
npx vratix module publish --private
Enter fullscreen mode Exit fullscreen mode
  • When you need to install your private module with command :
npx vratix add 
Enter fullscreen mode Exit fullscreen mode

Start Using Now !

Top comments (0)