{"id":19478346,"url":"https://github.com/priyansusahoo/ecommerce_project","last_synced_at":"2026-05-04T10:38:27.095Z","repository":{"id":198308087,"uuid":"667244148","full_name":"Priyansusahoo/Ecommerce_Project","owner":"Priyansusahoo","description":"E-Commerce application using Spring-Boot, Angular and MySQl DB.","archived":false,"fork":false,"pushed_at":"2023-11-19T19:33:19.000Z","size":43636,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-08T06:46:10.198Z","etag":null,"topics":["angular","mysql-database","spring-boot","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/Priyansusahoo.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":"2023-07-17T04:29:11.000Z","updated_at":"2024-01-02T07:04:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"e5584010-e35f-4a6d-aab9-8e77dac71c54","html_url":"https://github.com/Priyansusahoo/Ecommerce_Project","commit_stats":null,"previous_names":["priyansusahoo/ecommerce_project"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Priyansusahoo%2FEcommerce_Project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Priyansusahoo%2FEcommerce_Project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Priyansusahoo%2FEcommerce_Project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Priyansusahoo%2FEcommerce_Project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Priyansusahoo","download_url":"https://codeload.github.com/Priyansusahoo/Ecommerce_Project/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240709122,"owners_count":19845033,"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":["angular","mysql-database","spring-boot","typescript"],"created_at":"2024-11-10T19:49:30.774Z","updated_at":"2026-05-04T10:38:22.075Z","avatar_url":"https://github.com/Priyansusahoo.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# E-Commerce Project SETUP:\n\n\nThis guide is segregated into 3 main parts. \n1. The first part of the guide talks about installing the MySQL database, MySQL WB and finally running the SQL scripts required for the e-commerce project. \n2. The second part talks about running the Spring Boot E-Commerce App.\n3. The third part talks about running the Angular Frontend E-Commerce App.\n\n**Running MySQL Server:**\n1. Download the source code attached to lecture 217 and extract the directory from the zip.\n2. Open 01-starter-files directory. Let's run the scripts under the `01-starter-files/db-scripts` directory. To run those scripts and look at the results later, you have to install a MySQL client on your machine. So, We will install MySQL Workbench.\n3. Install [choco](https://chocolatey.org/install). choco is a prominent package manager for Windows. Note: Please make sure you open Windows PowerShell as Administrator for all software installations.\n   \u003cimg src=\"https://github.com/Priyansusahoo/Ecommerce_Project/assets/78722016/ce2eec5c-0936-4e86-8f23-1c3296fa568e\"/\u003e\n4.  Download MySQL community server from power shell using  `choco install mysql`. Note: While installing the software with choco, accept to run all scripts by giving `A`.\n    \u003cimg src=\"https://github.com/Priyansusahoo/Ecommerce_Project/assets/78722016/3dcfb1e7-6458-4ed0-b737-a5c3d462db4a\"/\u003e\n5. You can start MySQL as follows: hit  `windows key + R`   \n   \u003cimg src=\"https://github.com/Priyansusahoo/Ecommerce_Project/assets/78722016/64cc5d45-628e-4b6d-b071-0f975587e9cb\"/\u003e\n   \n7. Once you're in `Services`, find `MySQL` and start it.\n   \n   \u003cimg src=\"https://github.com/Priyansusahoo/Ecommerce_Project/assets/78722016/f6a1dba7-9983-463e-8994-e3066377135b\"/\u003e\n   \n9.  Now, in order to run those starter SQL scripts under `01-starter-files/db-scripts` , let's install MySQL Workbench.  Download MySQL Workbench using `choco install mysql.workbench`. You should see MySQL WB on start in Windows. Now, to run all the scripts, open all the SQL scripts one-by-one and run execute them by clickingon the ⚡️.\n\n    \u003cimg src=\"https://github.com/Priyansusahoo/Ecommerce_Project/assets/78722016/3f5aa2ba-82aa-40f4-99f9-2a54cce49ab4\"/\u003e\n    \n    \u003cimg src=\"https://github.com/Priyansusahoo/Ecommerce_Project/assets/78722016/2d303c80-c1cd-4588-8d13-32768619a220\"/\u003e\n\n\n**Running the Spring Boot App:**\n1. Install JDK on your machine from the power shell using `choco install zulu11`. Open your cmd prompt, and do `java --version` which should give you the java version.\n   \u003cimg src=\"https://github.com/Priyansusahoo/Ecommerce_Project/assets/78722016/56d79b59-cb38-4884-b656-0dfd49afcc6b\"/\u003e\n2. Set JAVA_HOME (as Administrator) from cmd. `setx -m JAVA_HOME \"C:\\Program Files\\Zulu\\zulu-11\"`. If you've installed Java using choco, it should be installed in the above-specified path. If not, make sure you have the right path to the JDK. To check if you've set the path right, run `refreshenv` in the same cmd prompt and then run `echo %JAVA_HOME%` gives you the path you've just set.\n3. Now, `cd` into `02-backend/spring-boot-ecommerce`. Now, run `mvnw clean install`. This might take a couple of minutes.\n4. Once everything goes well in step 3, to start your application run `mvnw spring-boot:run`. This will run your backend application. Once your application is up, go hit `http://localhost:8080/api/` on your browser and you should see something as follows: (Note: Make sure your mysql server is up)\n   \u003cimg src=\"https://github.com/Priyansusahoo/Ecommerce_Project/assets/78722016/0bcab7ed-fd36-48d9-ab8f-a88dedb1f9fe\" /\u003e\n\n**Running the Angular App:**\n1.  Install node on your machine using choco. `choco install nodejs-lts` . This will install install nodejs v16 (lts). **NOTE please install nodejs v16. This project is made using nodejs v16 and doesn't support latest nodejs versions.**\n2. Running `node -v` \u0026\u0026 `npm -v` from cmd should give you their respective version numbers.\n3. **IMP: To install angular. Install the angular version supported by nodejs v16. Try angular-cli 16.1.0 `npm install -g @angular/cli@16.2.6`**\n4. Install the angular-cli globally from the cmd prompt by running:  `npm install -g @angular/cli`. `ng version` should give you angular-cli version number.\n5. Now, navigate to our front-end app at `03-frontend/angular-ecommerce`. Once you're inside the `angular-ecommerce` directory, run `npm install`.\n6. Now, run `ng build`  (this might take a couple of minutes) and then `ng serve`.\n7. You should have the front-end e-commerce app up and running at `http://localhost:4200`. \nWith that, you should have a fully functional E-Commerce App running on your machine.\n   \u003cimg src=\"https://github.com/Priyansusahoo/Ecommerce_Project/assets/78722016/5e2aed54-48a1-4c42-8887-73d3482ad7ed\"/\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpriyansusahoo%2Fecommerce_project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpriyansusahoo%2Fecommerce_project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpriyansusahoo%2Fecommerce_project/lists"}