Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/thiagohrcosta/viaggiare-italia-api


https://github.com/thiagohrcosta/viaggiare-italia-api

Last synced: about 20 hours ago
JSON representation

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/italian

Using 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)