{"id":22934706,"url":"https://github.com/pauserratgutierrez/hack-uab","last_synced_at":"2026-05-11T02:17:01.966Z","repository":{"id":240497669,"uuid":"802133985","full_name":"pauserratgutierrez/hack-uab","owner":"pauserratgutierrez","description":"A project for the 2024 UAB Hackathon aimed at optimizing transport routes for financial services by Caixa d'Enginyers using Node.js, MySQL, and the Google Maps API","archived":false,"fork":false,"pushed_at":"2024-05-24T16:59:17.000Z","size":21589,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-07T12:18:17.730Z","etag":null,"topics":["google-maps-api","hackathon","javascript","mysql","nodejs","uab-the-hack"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pauserratgutierrez.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-17T15:26:07.000Z","updated_at":"2024-07-04T07:31:33.000Z","dependencies_parsed_at":"2024-05-22T18:46:05.681Z","dependency_job_id":null,"html_url":"https://github.com/pauserratgutierrez/hack-uab","commit_stats":null,"previous_names":["pauserratgutierrez/hack-uab"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pauserratgutierrez%2Fhack-uab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pauserratgutierrez%2Fhack-uab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pauserratgutierrez%2Fhack-uab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pauserratgutierrez%2Fhack-uab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pauserratgutierrez","download_url":"https://codeload.github.com/pauserratgutierrez/hack-uab/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246693859,"owners_count":20818969,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["google-maps-api","hackathon","javascript","mysql","nodejs","uab-the-hack"],"created_at":"2024-12-14T11:44:45.249Z","updated_at":"2026-05-11T02:16:56.907Z","avatar_url":"https://github.com/pauserratgutierrez.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HACKATHON 2024: UAB THE HACK 🏆\n\n## Description\n[UAB Website](https://www.uab.cat/web/detall-de-noticia/uab-the-hack-on-es-resolen-reptes-reals-d-empreses-1345737380866.html?noticiaid=1345915849483).\u003cbr\u003eThis project is part of a challenge to design optimal routes for mobile financial services provided by Caixa d'Enginyers to various municipalities in Catalonia. The goal is to ensure that the routes are efficient, meet regulatory requirements, and can adapt to real-time conditions such as traffic.\n- **Start**: Saturday 18/06/2024 at 11:00h\n- **End**: Sunday 19/06/2024 at 11:45h\n- **Team Members**: Genís Carretero Ferrete \u0026 Pau Serrat Gutiérrez\n\n## Project Structure\n- `app.js`: Main entry point.\n- `src/`: Main folder containing the node.js logic code.\n- `src/lib/maps/mapsAPI.js`: Contains functions for interacting with the Google Maps API to process the data, get distances \u0026 more useful information.\n- `src/lib/database/dbUtils.js`: Contains functions for retrieving data from the database.\n- `src/lib/routes`: Contains additional files for the main Back Tracking algorithm and more.\n- `CE-db-migrations.sql`: SQL script for setting up and migrating the database.\n\n## Usage Prerequisites\n- Node.js\n- MySQL\n- Google Maps API Key (distancematrix \u0026 geocode enabled)\n\n## Installation\n- Clone the repository\n- Install dependencies `npm i`\n- Have a correctly populated '.env' file located on the main `/src` directory.\u003cbr\u003e\n`GOOGLE_MAPS_API_KEY=paste-here`\u003cbr\u003e\n`DB_HOST=localhost`\u003cbr\u003e\n`DB_USER=root`\u003cbr\u003e\n`DB_PASSWORD=root`\u003cbr\u003e\n`DB_DATABASE=caixa_enginyers`\u003cbr\u003e\n`DB_PORT=3306`\u003cbr\u003e\n- Ensure the MySQL database populated and running. Using the `CE-db-migrations.sql` migration file to initialise \u0026 populate it.\n\n## Running the Project\n- Run the main script with `npm run start`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpauserratgutierrez%2Fhack-uab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpauserratgutierrez%2Fhack-uab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpauserratgutierrez%2Fhack-uab/lists"}