{"id":17007349,"url":"https://github.com/leoelicos/wander","last_synced_at":"2026-04-27T12:39:23.512Z","repository":{"id":114824201,"uuid":"493169674","full_name":"leoelicos/wander","owner":"leoelicos","description":"Node.js, Express.js, Sequelize, Heroku","archived":false,"fork":false,"pushed_at":"2023-04-07T16:34:49.000Z","size":108,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-27T11:22:11.087Z","etag":null,"topics":["bcryptjs","dotenv","expressjs","heroku-deployment","mysql2","nodejs","sequelizejs"],"latest_commit_sha":null,"homepage":"https://wndr.herokuapp.com/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leoelicos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2022-05-17T08:50:43.000Z","updated_at":"2023-04-07T16:35:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"7a533cc6-0b08-4c8f-909b-5f59b2e6274c","html_url":"https://github.com/leoelicos/wander","commit_stats":null,"previous_names":["leoelicos/wander"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leoelicos%2Fwander","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leoelicos%2Fwander/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leoelicos%2Fwander/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leoelicos%2Fwander/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leoelicos","download_url":"https://codeload.github.com/leoelicos/wander/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244952794,"owners_count":20537472,"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":["bcryptjs","dotenv","expressjs","heroku-deployment","mysql2","nodejs","sequelizejs"],"created_at":"2024-10-14T05:25:29.888Z","updated_at":"2026-04-27T12:39:18.476Z","avatar_url":"https://github.com/leoelicos.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Wander\n\n![Node.js](https://img.shields.io/badge/16.15.0%20LTS-0?label=Node.js\u0026style=for-the-badge\u0026labelColor=white\u0026color=black) ![Express.js](https://img.shields.io/badge/4.17.1-0?label=Express\u0026style=for-the-badge\u0026labelColor=white\u0026color=black) ![Mysql2](https://img.shields.io/badge/2.2.1-0?label=Mysql2\u0026style=for-the-badge\u0026labelColor=white\u0026color=black) ![Sequelize](https://img.shields.io/badge/6.3.5-0?label=Sequelize\u0026style=for-the-badge\u0026labelColor=white\u0026color=black) ![dotenv](https://img.shields.io/badge/8.2.0-0?label=dotenv\u0026style=for-the-badge\u0026labelColor=white\u0026color=black) ![bcrypt](https://img.shields.io/badge/5.0.0-0?label=bcrypt\u0026style=for-the-badge\u0026labelColor=white\u0026color=black) ![Heroku](https://img.shields.io/badge/7.60.2-0?label=heroku\u0026style=for-the-badge\u0026labelColor=white\u0026color=black)\n\n## Introduction\n\nWander is an API that uses Node.js, Express.js, MySQL, Sequelize, dotenv, bcrypt, Heroku\n\nThe app stores a database of Trip entities, which are incidences of Travellers and Locations. Travellers have many Locations, through Trips, and Locations also have many Travellers, through Trips.\n\nThe app uses `express.js` to coordinate the routes, and `mysql2` to handle the database;\n\nI made this app to learn about `sql` including creating, reading, updating and deleting actions via `mysql2`.\n\nDeployed: https://wndr.herokuapp.com/api/trips\n\n## Installation\n\n| Steps                             | Details                                                                         |\n| --------------------------------- | ------------------------------------------------------------------------------- |\n| Install `Node.js `                | https://nodejs.org/en/                                                          |\n| Install `Mysql`                   | https://dev.mysql.com/downloads/installer/                                      |\n| Install `Insomnia`                | https://insomnia.rest/download                                                  |\n| Clone this repo                   | `git clone`\u003cbr\u003ehttps://github.com/leoelicos/bcs-13-trips-database.git           |\n| Go inside                         | ` cd bcs-13-trips-database`                                                     |\n| Rename `.env.EXAMPLE`             | ` mv .env.Example .env`                                                         |\n| Input mysql credentials in `.env` | ` DB_USER={username}`\u003cbr\u003e`DB_PW={password}`\u003cbr\u003e_Don't forget to save the file!_ |\n| Initialize database               | `cd db`\u003cbr\u003e`mysql -u root -p`\u003cbr\u003e`{password}`\u003cbr\u003e`source schema.sql;`\u003cbr\u003e`exit` |\n| Install dependencies              | `cd ..`\u003cbr\u003e`npm install`                                                        |\n| Run seeds                         | `npm run seed`                                                                  |\n| Test in Insomnia                  | See [Usage](#usage)                                                             |\n| Also test on Heroku               | [Trips Database on Heroku](https://leoelicos-trips-database.herokuapp.com/)     |\n\n## Usage\n\n### Insomnia\n\n| Steps                     | Details                                                                                                                                                                   |\n| ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| Start the server          | `npm start`                                                                                                                                                               |\n| Root endpoint             | GET `localhost:3001`                                                                                                                                                      |\n| Search all travellers     | GET `/api/travellers`                                                                                                                                                     |\n| Find a specific traveller | GET `/api/travellers/:id`                                                                                                                                                 |\n| Search all locations      | GET `/api/locations`                                                                                                                                                      |\n| Find a specific location  | GET `/api/locations/:id`                                                                                                                                                  |\n| Add a traveller           | \u003cp\u003ePOST `/api/travellers`\u003c/p\u003e\u003cp\u003eBody: `{`\u003cbr\u003e`\"name\": STRING`\u003cbr\u003e`\"email\": STRING`\u003cbr\u003e`}`\u003c/p\u003e                                                                             |\n| Add a location            | \u003cp\u003ePOST `/api/locations`\u003c/p\u003e\u003cp\u003eBody: `{`\u003cbr\u003e`\"location_name\": INTEGER,`\u003cbr\u003e`}`\u003c/p\u003e                                                                                        |\n| Add a trip                | \u003cp\u003ePOST `/api/trips`\u003c/p\u003e\u003cp\u003eBody: `{`\u003cbr\u003e`\"trip_budget\": INTEGER,`\u003cbr\u003e`\"traveller_amount\": INTEGER,`\u003cbr\u003e`\"traveller_id\": INTEGER,`\u003cbr\u003e`\"location_id\": INTEGER,`\u003cbr\u003e`}`\u003c/p\u003e |\n| Delete a traveller        | DELETE `/api/travellers/:id`                                                                                                                                              |\n| Delete a location         | DELETE `/api/locations/:id`                                                                                                                                               |\n| Delete a trip             | DELETE `/api/trips/:id`                                                                                                                                                   |\n\n## Video Demo\n\nhttps://user-images.githubusercontent.com/99461390/170417099-e0b73b9b-6b51-44e9-868f-2927e8ff943b.mp4\n\n## Screenshots\n\n### Screenshot: Insomnia GET /api/locations\n\n![Insomnia GET locations](https://user-images.githubusercontent.com/99461390/170417348-6d0a4e0b-e463-4dff-b4f6-d17f0a28426f.jpg)\n\n### Screenshot: Heroku Homepage\n\n![Heroku Homepage](https://user-images.githubusercontent.com/99461390/170417410-e84da0b1-9b1e-4633-aed9-889aae47cbce.jpg)\n\n### Screenshot: Heroku Render\n\n![Heroku Render](https://user-images.githubusercontent.com/99461390/170417462-17359ca0-5eee-42a1-9181-44c35a0249ea.jpg)\n\n## Credits\n\n- BCS Resources\n\n## License\n\n\u0026copy; Leo Wong \u003cleoelicos@gmail.com\u003e\n\nLicensed under the [MIT License](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleoelicos%2Fwander","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleoelicos%2Fwander","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleoelicos%2Fwander/lists"}