-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from maick05/development
Development
- Loading branch information
Showing
62 changed files
with
2,114 additions
and
523 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
## [0.0.1] - 2022-05-30 | ||
|
||
### Added | ||
|
||
- First Version | ||
|
||
## [0.0.2] - 2022-06-20 | ||
|
||
### Added | ||
|
||
- MongoDB | ||
- Neighborhoods Collection | ||
|
||
## [0.0.3] - 2022-06-23 | ||
|
||
### Added | ||
|
||
- Validate data input by collections | ||
- Country Schema | ||
- State Schema | ||
- City Schema | ||
- Mongoose Migrations | ||
|
||
## [0.0.4] - 2022-06-24 | ||
|
||
### Added | ||
|
||
- Route Neighborhoods By State | ||
- Route Seed Neighborhoods By State | ||
- logSeed Collection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
src/config/database/log-scripts/2022-06-24_delete_fake_cities_sc_bra.mongo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
db.cities.deleteMany({ | ||
id: { | ||
$in: [ | ||
10400, 10969, 11128, 11170, 11305, 11432, 11450, 11890, 12343, 12732, | ||
13245, 13617, 13619, 14202, 14246, 14298, 14371, 14520, 15228, 15359 | ||
] | ||
} | ||
}); |
39 changes: 30 additions & 9 deletions
39
src/microservice/adapter/controller/neighborhoods.controller.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/microservice/adapter/helper/builder/neighborhoods/neighborhoods-mongo.builder.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
src/microservice/adapter/helper/builder/neighborhoods/neighborhoods-puppeteer.builder.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
src/microservice/adapter/repository/logseed/logseed-mongoose.repository.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { Injectable } from '@nestjs/common'; | ||
import { InjectModel } from '@nestjs/mongoose'; | ||
import { Model } from 'mongoose'; | ||
import { | ||
LogSeed, | ||
LogSeedDocument | ||
} from '../../../domain/schemas/logseed.schema'; | ||
import { MongooseRepository } from '../../../domain/repository/mongoose/mongoose.repository'; | ||
|
||
@Injectable() | ||
export class LogSeedMongoose extends MongooseRepository< | ||
LogSeed, | ||
LogSeedDocument | ||
> { | ||
constructor( | ||
@InjectModel(LogSeed.name) | ||
model: Model<LogSeedDocument> | ||
) { | ||
super(model); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
src/microservice/domain/enumerators/enum-translations.enumerator.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
export enum EnumTranslations { | ||
KR = 'kr', | ||
BR = 'br', | ||
PT = 'pt', | ||
NL = 'nl', | ||
HR = 'hr', | ||
FA = 'fa', | ||
DE = 'de', | ||
ES = 'es', | ||
FR = 'fr', | ||
JS = 'ja', | ||
IT = 'it', | ||
CN = 'cn', | ||
TR = 'tr' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export enum EnumTypeLogSeed { | ||
NeighborhoodsByState = 'NeighborhoodsByState', | ||
NeighborhoodsByCity = 'NeighborhoodsByCity' | ||
} |
5 changes: 5 additions & 0 deletions
5
src/microservice/domain/interface/aggregated/aggregated-neighborhoods-city.interface.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export interface AggregatedNeighborhoodsCity { | ||
_id: { cityId: number }; | ||
count: number; | ||
city: string; | ||
} |
Oops, something went wrong.