{"id":18614878,"url":"https://github.com/andrewjbateman/nodejs-tutorial-shoppingcart","last_synced_at":"2026-04-20T10:03:23.827Z","repository":{"id":42230531,"uuid":"164612034","full_name":"AndrewJBateman/nodejs-tutorial-shoppingcart","owner":"AndrewJBateman","description":":clipboard: Udemy Node.js tutorial shopping cart","archived":false,"fork":false,"pushed_at":"2023-04-30T05:05:41.000Z","size":520,"stargazers_count":1,"open_issues_count":9,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-17T01:34:26.881Z","etag":null,"topics":["css3","express-middleware","javascript","mysql-database","nodejs","orm","sequelize","sql","tutorial-code"],"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/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":"2019-01-08T09:22:51.000Z","updated_at":"2022-09-15T19:08:10.000Z","dependencies_parsed_at":"2024-11-07T03:41:04.262Z","dependency_job_id":null,"html_url":"https://github.com/AndrewJBateman/nodejs-tutorial-shoppingcart","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AndrewJBateman/nodejs-tutorial-shoppingcart","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fnodejs-tutorial-shoppingcart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fnodejs-tutorial-shoppingcart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fnodejs-tutorial-shoppingcart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fnodejs-tutorial-shoppingcart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndrewJBateman","download_url":"https://codeload.github.com/AndrewJBateman/nodejs-tutorial-shoppingcart/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fnodejs-tutorial-shoppingcart/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32042294,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["css3","express-middleware","javascript","mysql-database","nodejs","orm","sequelize","sql","tutorial-code"],"created_at":"2024-11-07T03:27:17.554Z","updated_at":"2026-04-20T10:03:23.806Z","avatar_url":"https://github.com/AndrewJBateman.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# :zap: Node.js, mongoDB Shopping Cart\n\n* Code to learn to learn Node.js. This is part of a Udemy Node.js course.\nCode modified considerably to work with [MySQL Workbench database](https://dev.mysql.com/downloads/file/?id=480823) v8.0.13.0.msi.\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/nodejs-tutorial-shoppingcart?style=plastic)\n![GitHub pull requests](https://img.shields.io/github/issues-pr/AndrewJBateman/nodejs-tutorial-shoppingcart?style=plastic)\n![GitHub Repo stars](https://img.shields.io/github/stars/AndrewJBateman/nodejs-tutorial-shoppingcart?style=plastic)\n![GitHub last commit](https://img.shields.io/github/last-commit/AndrewJBateman/nodejs-tutorial-shoppingcart?style=plastic)\n\n## :page_facing_up: Table of contents\n\n* [:zap: Node.js, mongoDB Shopping Cart](#zap-nodejs-mongodb-shopping-cart)\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  * [:floppy_disk: Setup](#floppy_disk-setup)\n  * [:computer: Code Examples](#computer-code-examples)\n  * [:cool: Features](#cool-features)\n  * [:clipboard: Status \u0026 To-Do](#clipboard-status--to-do)\n  * [Inspiration](#inspiration)\n  * [:file_folder: License](#file_folder-license)\n  * [:envelope: Contact](#envelope-contact)\n\n## :books: General info\n\n* Uses Embedded Javascript Templating ejs to create HTML markup with plain javascript.\n\n## :camera: Screenshots\n\n![screenprint](./images/.png)\n\n## :signal_strength: Technologies\n\n* [Node.js v14](https://nodejs.org)\n* [Express v4](https://www.npmjs.com/package/express)\n* [Sequelize v6](http://docs.sequelizejs.com) - adds promise-based Node.js Object Relational Mapping to MySQL. Features schema definition, schema synchronization/dropping, 1:1, 1:M \u0026 N:M Associations, through models, promises, hooks/callbacks/lifecycle events, prefetching/association including transactions, migrations and CLI (sequelize-cli).\n\n## :floppy_disk: Setup\n\n* `npm i` to install dependencies\n* Start mysql\n* to run on a dev server: type `nodemon app.js` then navigate to `localhost:3000`\n\n## :computer: Code Examples\n\n* `app.js` Sequelize method to sync with database then find user data by id or create new user etc.\n\n```javascript\nsequelize\n  .sync() //sync with database\n  .then((result) =\u003e {\n    return User.findById(1);\n    //console.log(result);\n  })\n  .then((user) =\u003e {\n    if (!user) {\n      return User.create({ name: \"Max\", email: \"test@test.com\" });\n    }\n    return user;\n  })\n  .then((user) =\u003e {\n    // console.log(user);\n    return user.createCart();\n  })\n  .then((cart) =\u003e {\n    app.listen(3000);\n  })\n  .catch((err) =\u003e {\n    console.log(err);\n  });\n```\n\n## :cool: Features\n\n* None\n\n## :clipboard: Status \u0026 To-Do\n\n* Status: Working\n* To-Do: Nothing\n\n## Inspiration\n\n* [NodeJS - The Complete Guide (incl. MVC, REST APIs, GraphQL)](https://www.udemy.com/nodejs-the-complete-guide/)\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%2Fnodejs-tutorial-shoppingcart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewjbateman%2Fnodejs-tutorial-shoppingcart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewjbateman%2Fnodejs-tutorial-shoppingcart/lists"}