Skip to content

Commit

Permalink
business logic updates
Browse files Browse the repository at this point in the history
  • Loading branch information
furknyavuz committed Sep 28, 2021
1 parent 7cdd2c2 commit 3f02935
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 15 deletions.
2 changes: 1 addition & 1 deletion NPM-README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Command line interface generator of the servers at [Open Template Hub](https://g
Available server types are:

* [Payment Server](https://github.com/open-template-hub/payment-server-template)
* [Basic Info Server](https://github.com/open-template-hub/basic-info-server-template)
* [Business Logic Server](https://github.com/open-template-hub/business-logic-server-template)
* [Auth Server](https://github.com/open-template-hub/auth-server-template)
* [File Storage Server](https://github.com/open-template-hub/file-storage-server-template)
* [Analytics Server](https://github.com/open-template-hub/analytics-server-template)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Command line interface generator of the servers at [Open Template Hub](https://g
Available server types are:

* [Payment Server](https://github.com/open-template-hub/payment-server-template)
* [Basic Info Server](https://github.com/open-template-hub/basic-info-server-template)
* [Business Logic Server](https://github.com/open-template-hub/business-logic-server-template)
* [Auth Server](https://github.com/open-template-hub/auth-server-template)
* [File Storage Server](https://github.com/open-template-hub/file-storage-server-template)
* [Analytics Server](https://github.com/open-template-hub/analytics-server-template)
Expand Down
11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,20 @@
"auth",
"authentication",
"payment",
"basic",
"basic info",
"busines",
"logic",
"business logic",
"backend",
"template",
"server template",
"auth server example",
"auth server template",
"payment server example",
"payment server template",
"basic info server example",
"basic info server template",
"business logic server example",
"business logic server template",
"mail server example",
"mail server template",
"open template hub"
]
}
6 changes: 3 additions & 3 deletions src/constant.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export const TemplateType = {
PaymentServer: '1',
AuthServer: '2',
BasicInfoServer: '3',
BusinessLogicServer: '3',
FileStorageServer: '4',
AnalyticsServer: '5',
MailServer: '6',
Expand All @@ -14,7 +14,7 @@ export const BRANCH_NAME = 'master';
export const ProjectName = {
PaymentServer: 'payment-server-template',
AuthServer: 'auth-server-template',
BasicInfoServer: 'basic-info-server-template',
BusinessLogicServer: 'business-logic-server-template',
FileStorageServer: 'file-storage-server-template',
AnalyticsServer: 'analytics-server-template',
MailServer: 'mail-server-template',
Expand All @@ -23,7 +23,7 @@ export const ProjectName = {
export const PackageName = {
PaymentServer: 'payment-server-template',
AuthServer: 'auth-server-template',
BasicInfoServer: 'basic-info-server-template',
BusinessLogicServer: 'business-logic-server-template',
FileStorageServer: 'file-storage-server-template',
AnalyticsServer: 'analytics-server-template',
MailServer: 'mail-server-template',
Expand Down
12 changes: 6 additions & 6 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const QUESTIONS = [
message:
'1) Payment Server \n' +
' 2) Auth Server \n' +
' 3) Basic Info Server \n' +
' 3) Business Logic Server \n' +
' 4) File Storage Server \n' +
' 5) Analytics Server \n' +
' 6) MİL Server \n' +
Expand Down Expand Up @@ -122,9 +122,9 @@ const updateProjectName = (
repoConfig.projectName = ProjectName.PaymentServer;
repoConfig.packageName = PackageName.PaymentServer;
break;
case TemplateType.BasicInfoServer:
repoConfig.projectName = ProjectName.BasicInfoServer;
repoConfig.packageName = PackageName.BasicInfoServer;
case TemplateType.BusinessLogicServer:
repoConfig.projectName = ProjectName.BusinessLogicServer;
repoConfig.packageName = PackageName.BusinessLogicServer;
break;
case TemplateType.FileStorageServer:
repoConfig.projectName = ProjectName.FileStorageServer;
Expand Down Expand Up @@ -193,14 +193,14 @@ const cloneTemplate = ( targetPath: string, templateType: string ) => {
'/' +
ProjectName.PaymentServer;
break;
case TemplateType.BasicInfoServer:
case TemplateType.BusinessLogicServer:
cmd =
clone +
BRANCH_NAME +
' ' +
TEMPLATE_HUB_URL +
'/' +
ProjectName.BasicInfoServer;
ProjectName.BusinessLogicServer;
break;
case TemplateType.FileStorageServer:
cmd =
Expand Down

0 comments on commit 3f02935

Please sign in to comment.