Skip to content

Commit

Permalink
Merge pull request #29 from maick05/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
maick05 authored Aug 26, 2022
2 parents e376d6d + 99e07d7 commit d8daa50
Show file tree
Hide file tree
Showing 71 changed files with 2,315 additions and 255 deletions.
3 changes: 2 additions & 1 deletion .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ RABBITMQ_USER=
RABBITMQ_PASSWORD=
RABBITMQ_HOST=
RABBITMQ_VHOST=

JWT_SECRET=
API_PORT=
6 changes: 3 additions & 3 deletions .scannerwork/report-task.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
organization=dev-seeder
projectKey=maick05_places
serverUrl=https://sonarcloud.io
serverVersion=8.0.0.29264
serverVersion=8.0.0.31337
dashboardUrl=https://sonarcloud.io/dashboard?id=maick05_places
ceTaskId=AYEShHKEx7rM3OF9_Y2O
ceTaskUrl=https://sonarcloud.io/api/ce/task?id=AYEShHKEx7rM3OF9_Y2O
ceTaskId=AYLbT06b3I3q_WNQcvco
ceTaskUrl=https://sonarcloud.io/api/ce/task?id=AYLbT06b3I3q_WNQcvco
10 changes: 10 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,13 @@ All notable changes to this project will be documented in this file.
- Route Seed Neighborhoods By Country
- Seed Regions By Puppeteer
- Seed Neighborhoods By State Queue

## [0.0.8] - 2022-08-26

### Added

- Improve response from DB Regions By Country
- Puppeteer Stealth plugin implementation
- Puppeteer change proxy implementation
- Puppeteer Cluster Implementation for queue process
- JWT Authentication
18 changes: 11 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

[circleci-image]: https://img.shields.io/circleci/build/github/nestjs/nest/master?token=abc123def456
[circleci-url]: https://circleci.com/gh/nestjs/nest
[url-prod]: http://places.devseeder.com/api

<p align="center">This project use <a href="https://github.com/nestjs/nest" target="_blank">NestJS</a>, a progressive <a href="http://nodejs.org" target="_blank">Node.js</a> framework for building efficient and scalable server-side applications.</p>

Expand All @@ -14,6 +15,8 @@
<li>NodeJS</li>
<li>Puppeteer</li>
<li>MongoDB</li>
<li>RabbitMQ</li>
<li>JWT Auth</li>
</ul>

## Description
Expand All @@ -23,6 +26,7 @@ API to get Places by Local Names.
- Neighborhoods
- Cities
- States
- Regions
- Countries

## Installation
Expand Down Expand Up @@ -81,19 +85,19 @@ After run the server, make a get in browser, postman or similar

```bash
## Neighborhoods By City example
http://localhost:3000/neighborhoods/city/brazil/sc/orleans
http://places.devseeder.com/api/neighborhoods/city/brazil/sc/orleans
## Neighborhoods By State example
http://localhost:3000/neighborhoods/city/brazil/sc
http://places.devseeder.com/api/neighborhoods/city/brazil/sc
## Cities By State example
http://localhost:3000/cities/brazil/sc
http://places.devseeder.com/api/cities/brazil/sc
## Cities By Country example
http://localhost:3000/cities/brazil
http://places.devseeder.com/api/cities/brazil
## States By Country example
http://localhost:3000/states/brazil
http://places.devseeder.com/api/states/brazil
## Countries example
http://localhost:3000/countries/
http://places.devseeder.com/api/countries/
```

[Swagger](https://app.swaggerhub.com/apis/dev-seeder/Places/)

At the moment, it's working only for Brazilians places.
At the moment, it's working only for Brazilians Neighborhoods.
5 changes: 4 additions & 1 deletion config/yaml/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,11 @@ microservices:
by:
city: 'channel-seed-neighborhoods-by-city'
state: 'channel-seed-neighborhoods-by-state'
auth:
jwt:
secret: ${JWT_SECRET}
api:
port: 3000
port: ${API_PORT}
doc:
version: 0.0.7
name: 'places'
Loading

0 comments on commit d8daa50

Please sign in to comment.