implementing use cases
This commit is contained in:
14
src/app.js
14
src/app.js
@@ -1,10 +1,16 @@
|
||||
const { GetCategoryUseCase } = require('./use-cases/get-category-use-case.js')
|
||||
const categoriesMapping = require('../etc/categories-mapping.json')
|
||||
const categoriesMapping = require('./etc/categories-mapping.json')
|
||||
const { CategoryConverterUseCase } = require('./use-cases/category-converter-use-case.js')
|
||||
|
||||
const getCategoryUseCase = new GetCategoryUseCase();
|
||||
|
||||
(async () => {
|
||||
const categoryId = await getCategoryUseCase.execute()
|
||||
console.log(categoryId)
|
||||
})()
|
||||
|
||||
|
||||
|
||||
|
||||
const getCategoryUseCase = new GetCategoryUseCase({categoriesMapping})
|
||||
// const categoryConverter = new CategoryConverterUseCase({ categoriesMapping })
|
||||
|
||||
|
||||
getCategoryUseCase.execute('utorrent.com')
|
||||
Reference in New Issue
Block a user