hipolito-loader
v1.0.3
Published
Please configure the project files as it is mentioned inside npm package config.
Downloads
3
Readme
Albatross Plugin Loader
Usage :
Configuration Path :
Please configure the project files as it is mentioned inside npm package config.
API Config files will be inside path root-project-folder/config/api-configs
Service files will be inside path root-project-folder/services.
Routes files will be inside path root-project-folder/routes.
Inside Orchestrator :
Service Loader :-
Services files will be inside root-folder/services/
Loading technique :-
Inside location: root-folder/config/index.js, please write down the below code.
import AlbatrossFileLoader from 'albatross-file-loader-ts';
const albatrossFileLoader = new AlbatrossFileLoader(albatrossHTTP);
const services = albatrossFileLoader.loadServices();
Routes Loader :-
Routes files will be inside root-folder/routes/
Loading technique :-
Inside location: root-folder/server/server.js, please write down the below code.
import AlbatrossFileLoader from 'albatross-file-loader-ts';
const albatrossFileLoader = new AlbatrossFileLoader();
albatrossFileLoader.loadRoutes(container.resolve('repo'), app);