{"id":16266348,"url":"https://github.com/tcampbppu/meanproject","last_synced_at":"2026-04-12T05:34:10.503Z","repository":{"id":97827245,"uuid":"190447055","full_name":"tcampbPPU/meanProject","owner":"tcampbPPU","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-10T18:18:21.000Z","size":27,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-01-03T19:32:52.920Z","etag":null,"topics":["angular","express","mean-stack","mysql","nodejs"],"latest_commit_sha":null,"homepage":null,"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/tcampbPPU.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":"2019-06-05T18:23:56.000Z","updated_at":"2019-06-05T19:33:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"1265feeb-61ad-4c79-86c7-2b9d91fbe5cd","html_url":"https://github.com/tcampbPPU/meanProject","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tcampbPPU/meanProject","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcampbPPU%2FmeanProject","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcampbPPU%2FmeanProject/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcampbPPU%2FmeanProject/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcampbPPU%2FmeanProject/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tcampbPPU","download_url":"https://codeload.github.com/tcampbPPU/meanProject/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcampbPPU%2FmeanProject/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31705574,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-12T05:11:36.334Z","status":"ssl_error","status_checked_at":"2026-04-12T05:11:27.332Z","response_time":58,"last_error":"SSL_read: 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":["angular","express","mean-stack","mysql","nodejs"],"created_at":"2024-10-10T17:40:43.468Z","updated_at":"2026-04-12T05:34:10.486Z","avatar_url":"https://github.com/tcampbPPU.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mysql Express Angular Nodejs initial startup\n\n## Description\nThis makes creating a new MEAN app with a Mysql Relational Database much simpler.\n\n## Contributors\n* Tanner Campbell\n\n## Set up\n```\nmkdir -p ~/projects\n```\nAnd change into this directory:\n```\ncd ~/projects\n```\nClone the forked repository:\n```\ngit clone git@github.com:$USERNAME/meanProject.git\n```\nMake sure to replace $USERNAME with your own GitHub username.\n\nIn order to run the code you will need to create a `credentials.js` in the main directory.\n\nThe credentials file should look similar to this:\n\n```\nmodule.exports = {\n  port: SOME_PORT,\n  url: \"YOUR_URL\",\n  host: \"DB_HOST_URL\",\n  user: \"DB_USER\",\n  password: \"DB_PASSWORD\",\n  database: \"DB\"\n};\n```\n\nAfter the credentials file is created you can test it works in the `server.js` file by adding `const connect = require('./connect.js');` to the file and running a simple query to your database similar the following:\n\n```\nconnect(function(con) {\n  var q = \"select * from TABLE\";\n  try {\n    con.query(q, function (err, result, fields) {\n      if (err) {\n        console.log(err);\n      }else {\n        console.log(result);\n      }\n    });\n  }catch (err) {\n    console.log(err);\n  }\n});\n```\nThen run the web server.\n\n```\nnode server.js\n```\nAfter successfully logging the results query you can require the `connect.js` in any of your ./routes/_files_ and execute queries.\n\n### To get started with Angular(7)\n From the main directory run the following command:\n```\nng new client\n```\nIn the newly created client directory open the `angular.json` file and change\n```\n\"outputPath\": \"dist/client\",\n```\nTo\n```\n\"outputPath\": \"../views\",\n```\n\nRUN the Following command:\n```\nng build\n```\nRefresh the browser and it should be working!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftcampbppu%2Fmeanproject","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftcampbppu%2Fmeanproject","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftcampbppu%2Fmeanproject/lists"}