Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: airports module #10

Merged
merged 32 commits into from
Jan 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
5235cb6
feat: airport module
Jan 10, 2023
fd11f4c
feat: airport tests
Jan 10, 2023
606671b
feat: airport tests
Jan 10, 2023
5dde6d3
removed cities data file
Jan 10, 2023
06ce292
csv reader
Jan 10, 2023
6e73734
update readme sources
Jan 10, 2023
f28aa27
updated packages
Jan 10, 2023
89dc327
feat: airport module
Jan 10, 2023
32d6484
import updates
Jan 10, 2023
09e062f
feat: state code is not unique anymore
Jan 10, 2023
767f381
composer update
Jan 10, 2023
89e1784
newline
Jan 10, 2023
92dcfa6
import all geo data command
Jan 10, 2023
a7a9656
readme upd
Jan 10, 2023
ba2db25
feat: create airport action
Jan 11, 2023
b006200
cs
Jan 11, 2023
6d7077f
feat: redirect to admin route
Jan 11, 2023
130e581
feat: show country in the airport admin
Jan 11, 2023
1f2a1ee
feat: added positions in the airport response
Jan 11, 2023
516d3e3
feat: remove timestamp from index view
Jan 11, 2023
521bf0c
feat: added positions to dummy airport
Jan 11, 2023
e1d7149
feat: update airport action
Jan 11, 2023
74c4a0f
feat: renamed test
Jan 11, 2023
b866558
feat: airport factory test
Jan 11, 2023
2c62ced
feat: delete airport rest api crud
Jan 11, 2023
bfae13d
feat: delete airport action test
Jan 11, 2023
65daad9
feat: limit offset traitt
Jan 11, 2023
66a71e8
feat: use limit offset trait
Jan 11, 2023
c624349
feat: get airports crud rest api
Jan 11, 2023
e964e94
postman collection with all rest api crud methods
Jan 11, 2023
122c886
feat: limit offset trait
Jan 11, 2023
c590891
feat: get airports action test
Jan 11, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,19 @@ states:

.PHONY: cities
cities:
@docker exec app sh -c "bin/console app:import-cities"
@docker exec app sh -c "bin/console app:import-cities"

.PHONY: airports
airports:
@docker exec app sh -c "bin/console app:import-airports"

.PHONY: geo
geo:
make currencies
make timezones
make regions
make subregions
make countries
make states
make cities
make airports
22 changes: 19 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ make test

### Import

All geo data

```bash
make geo
```

Currencies

```bash
Expand Down Expand Up @@ -66,10 +72,20 @@ States
make states
```

### Data sources
Cities

https://download.geonames.org/export/zip
```bash
make cities
```

https://osmnames.org/download/
Airports

```bash
make airports
```

### Data sources

https://github.com/dr5hn/countries-states-cities-database

https://gist.githubusercontent.com/Chanch95/6ae45e4dd8b5020bb368128f791347ea/raw/2c98c7ff5d241098de14644ac2a1af46ed4f85f2/airport.csv
93 changes: 46 additions & 47 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions config/packages/doctrine.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ doctrine:
dir: '%kernel.project_dir%/src/City/Entity'
prefix: 'App\City\Entity'
alias: City
Airport:
is_bundle: false
dir: '%kernel.project_dir%/src/Airport/Entity'
prefix: 'App\Airport\Entity'
alias: Airport

when@test:
doctrine:
Expand Down
6 changes: 6 additions & 0 deletions config/routes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,10 @@ app_cities:
resource:
path: ../src/City/Controller/
namespace: App\City\Controller
type: attribute

app_airports:
resource:
path: ../src/Airport/Controller/
namespace: App\Airport\Controller
type: attribute
Loading