Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thiagohrcosta/viaggiare-italia-api
https://github.com/thiagohrcosta/viaggiare-italia-api
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/thiagohrcosta/viaggiare-italia-api
- Owner: thiagohrcosta
- Created: 2022-06-25T13:17:44.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-06-30T00:57:55.000Z (over 2 years ago)
- Last Synced: 2024-10-28T07:18:19.127Z (about 2 months ago)
- Language: Ruby
- Size: 220 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![banner](https://res.cloudinary.com/dloadb2bx/image/upload/v1655778021/ITALIA1_gnauwe.png)
# Viaggiare Italia - Backend API
![Next JS](https://img.shields.io/badge/Next-black?style=for-the-badge&logo=next.js&logoColor=white) ![React](https://img.shields.io/badge/react-%2320232a.svg?style=for-the-badge&logo=react&logoColor=%2361DAFB) ![Chakra](https://img.shields.io/badge/chakra-%234ED1C5.svg?style=for-the-badge&logo=chakraui&logoColor=white) ![Ruby](https://img.shields.io/badge/ruby-%23CC342D.svg?style=for-the-badge&logo=ruby&logoColor=white) ![Rails](https://img.shields.io/badge/rails-%23CC0000.svg?style=for-the-badge&logo=ruby-on-rails&logoColor=white)
The backend in this repository was developed to supply the data that is consumed by the [frontend (see here)](https://github.com/thiagohrcosta/Viaggiare-Italia)
# Technologies
-[\[Nokogiri\]](https://nokogiri.org/): Using Nokogiri's features, it was possible to quickly develop a complete seed based on data scraped from real sites. Restaurant names, cities, photos, were quickly entered into the database using real data scrapping.
- City names was scraped from: https://www.britannica.com/topic/list-of-cities-and-towns-in-Italy-2047404
- Restaurants names was scraped from: https://www.forketers.com/120-italian-restaurant-names-will-amaze-even-italians/
- Images was scraped from: https://unsplash.com/collections/K4_v8gc61jw/italianbanner and https://unsplash.com/collections/9FKBTb41_jU/italianUsing Nokogiri to scrape data at this time allowed, for example, to automatically insert 308 Italian cities with a simple scraping code.
![enter image description here](https://res.cloudinary.com/dloadb2bx/image/upload/v1656182505/scrap2_z6gulh.png)