{"id":18614770,"url":"https://github.com/andrewjbateman/mevn-stack-data","last_synced_at":"2026-04-07T08:31:57.243Z","repository":{"id":96860695,"uuid":"418915408","full_name":"AndrewJBateman/mevn-stack-data","owner":"AndrewJBateman","description":":clipboard: MEVN Info \u0026 Full stack MEVN app with CRUD functions","archived":false,"fork":false,"pushed_at":"2023-10-06T11:43:22.000Z","size":1327,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-30T10:15:28.724Z","etag":null,"topics":["data","database","express","expressjs","full-stack","info","mevn","mevn-stack","middleware","mongodb","mongodb-atlas","nodejs","typescript","vue","vue3","vue3-typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/AndrewJBateman.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":"2021-10-19T12:30:45.000Z","updated_at":"2023-02-14T11:55:01.000Z","dependencies_parsed_at":"2024-11-07T03:40:54.232Z","dependency_job_id":null,"html_url":"https://github.com/AndrewJBateman/mevn-stack-data","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AndrewJBateman/mevn-stack-data","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fmevn-stack-data","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fmevn-stack-data/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fmevn-stack-data/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fmevn-stack-data/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndrewJBateman","download_url":"https://codeload.github.com/AndrewJBateman/mevn-stack-data/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fmevn-stack-data/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31506562,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T03:10:19.677Z","status":"ssl_error","status_checked_at":"2026-04-07T03:10:13.982Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["data","database","express","expressjs","full-stack","info","mevn","mevn-stack","middleware","mongodb","mongodb-atlas","nodejs","typescript","vue","vue3","vue3-typescript"],"created_at":"2024-11-07T03:26:57.164Z","updated_at":"2026-04-07T08:31:57.217Z","avatar_url":"https://github.com/AndrewJBateman.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# :zap: MEVN Stack Data\n\n* MEVN app: Vue frontend used to Create Read Update \u0026 Delete (CRUD) cable installation data with a Node-Express backend \u0026 MongoDB database.\n* **Note:** to open web links in a new window use: _ctrl+click on link_\n\n![GitHub repo size](https://img.shields.io/github/repo-size/AndrewJBateman/mevn-stack-data?style=plastic)\n![GitHub pull requests](https://img.shields.io/github/issues-pr/AndrewJBateman/mevn-stack-data?style=plastic)\n![GitHub Repo stars](https://img.shields.io/github/stars/AndrewJBateman/mevn-stack-data?style=plastic)\n![GitHub last commit](https://img.shields.io/github/last-commit/AndrewJBateman/mevn-stack-data?style=plastic)\n\n## :page_facing_up: Table of contents\n\n* [:zap: MEVN Stack Data](#zap-mevn-stack-data)\n  * [:page\\_facing\\_up: Table of contents](#page_facing_up-table-of-contents)\n  * [:books: General info](#books-general-info)\n  * [:camera: Screenshots](#camera-screenshots)\n  * [:signal\\_strength: Technologies](#signal_strength-technologies)\n    * [Frontend](#frontend)\n    * [Backend](#backend)\n    * [General](#general)\n  * [:floppy\\_disk: Setup](#floppy_disk-setup)\n  * [:computer: Code Examples](#computer-code-examples)\n  * [:cool: Features](#cool-features)\n  * [:clipboard: Status \\\u0026 To-Do List](#clipboard-status--to-do-list)\n  * [:clap: Inspiration](#clap-inspiration)\n  * [:file\\_folder: License](#file_folder-license)\n  * [:envelope: Contact](#envelope-contact)\n\n## :books: General info\n\n* Cable pulling database idea inspired by time spent pulling electrical cables on an LNG plant in Northern Norway for Statoil. It is required to complete a cable database with details of cable, cable drum, amount of cable pulled and installed etc.\n* Axios used to send/receive data from the MongoDB backend\n* Backend node.js code separated into routes file with a Mongoose model Cable schema.\n* Latest Mongoose v6 connection config. used (as of oct. 2021) with no deprecation warnings. Note an old config. will stop any Mongoose-based app from working.\n* [Vue 4 RouteRecordRaw](https://next.router.vuejs.org/api/#routerecordraw) route record provided by user\n\n## :camera: Screenshots\n\n![Example screenshot](./imgs/vue.png)\n\n## :signal_strength: Technologies\n\n### Frontend\n\n* [Vue v3](https://vuejs.org/) JS framework\n* [Vue Router v4](https://router.vuejs.org/) the latest official router for Vue.js\n* [Vue CLI v5](https://cli.vuejs.org/)\n* [Axios v1](https://github.com/axios/axios), a promise-based http client, used to consume API data.\n* [Bootswatch v5](https://bootswatch.com/) Bootstrap theme\n\n### Backend\n\n* [Express v4](https://expressjs.com/)\n* [Mongoose v6](https://mongoosejs.com/)\n* [cors v2](https://www.npmjs.com/package/cors) Cross Origin Resource Sharing Connect/Express middleware\n* [Node v16](https://nodejs.org/en/) JavaScript runtime built on Chrome's V8 JavaScript engine.\n* [Typescript v4](https://www.typescriptlang.org/)\n* [MongoDB Atlas](https://www.mongodb.com/cloud/atlas)\n\n### General\n\n* [Thunder Client VS Code Extension](https://www.thunderclient.io/) lightweight Rest Client for Testing APIs\n* [rimraf](https://www.npmjs.com/package/rimraf) the UNIX command rm -rf for node.\n\n## :floppy_disk: Setup\n\n**Dev Backend:**\n\n* `cd server` to change directory\n* `npm i` to install dependencies\n* add MongoDB access\n* Run `npm run dev` to run node.js server.\n* Navigate to `http://localhost:3000/api/cables` to see JSON object with cable list or an empty array if no cables (refresh after changes - does not auto-update).\n* CRUD operations can be performed on this backend using the [Postman](https://www.postman.com/) API dev tool or the [Thunder Client VS Code Extension](https://www.thunderclient.io/).\n\n**Dev Frontend:**\n\n* `npm i` to install dependencies\n* `npm run lint` to lint files\n* `npm run client` to run client dev server\n* Navigate to `http://localhost:8080/`. The app will automatically reload if you change any of the source files.\n\n**Build Full Stack:**\n\n* `npm run build` to create build file for both front \u0026 back ends\n* Navigate to `http://localhost:8080/` to see frontend and `http://localhost:3000/` to see backend (refresh after changes - does not auto-update).\n* Heroku `heroku login` to login, `git add .` then `git commit -m \"commit message...\"` then `git push heroku master` to deploy to Heroku\n\n## :computer: Code Examples\n\n* 'cable.controller.ts' function to update cable by id\n\n```typescript\nexport const updateCableHandler = async (\n  req: Request,\n  res: Response\n): Promise\u003cResponse\u003cany, Record\u003cstring, any\u003e\u003e\u003e =\u003e {\n  try {\n    const updatedCable = await Cable.findByIdAndUpdate(\n      req.params.id,\n      req.body,\n      {\n        new: true,\n      }\n    );\n    if (!updatedCable) {\n      return res.status(404).json({\n        message: \"Cable to be updated was not found\",\n      });\n    }\n    return res.json(updatedCable);\n  } catch (error) {\n    return res.status(500).send(error);\n  }\n};\n```\n\n## :cool: Features\n\n* Data successfully stored on MongoDB Atlas database\n\n## :clipboard: Status \u0026 To-Do List\n\n* Status: Working full-stack CRUD app with MongoDB Atlas database\n* To-Do: Replace any data types, separate controller functions from routes, add date field\n* To-Do: fix navbar burger button, styling, add cable fields, add drop down menu for cable drum selection etc.\n\n## :clap: Inspiration\n\n* [What is rimraf and how to use it in Node.js](https://learn.coderslang.com/0024-what-is-rimraf-and-how-to-use-it/)\n\n## :file_folder: License\n\n* This project is licensed under the terms of the MIT license.\n\n## :envelope: Contact\n\n* Repo created by [ABateman](https://github.com/AndrewJBateman), email: `gomezbateman@yahoo.com`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewjbateman%2Fmevn-stack-data","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewjbateman%2Fmevn-stack-data","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewjbateman%2Fmevn-stack-data/lists"}