Skip to content

NM-25: Copy static assets from .NET project to Spring Boot resources#9

Open
devin-ai-integration[bot] wants to merge 1 commit into
devin/1779337581-nm22-spring-boot-initfrom
devin/1779378171-nm25-copy-static-assets
Open

NM-25: Copy static assets from .NET project to Spring Boot resources#9
devin-ai-integration[bot] wants to merge 1 commit into
devin/1779337581-nm22-spring-boot-initfrom
devin/1779378171-nm25-copy-static-assets

Conversation

@devin-ai-integration
Copy link
Copy Markdown

Summary

Copies all static assets from the legacy .NET project (eShopPorted/wwwroot/) to the Spring Boot project at eShopModernizedSpringSolution/src/main/resources/static/, preserving the original directory structure.

Assets copied (91 files total):

  • Content/ — 15 CSS files (bootstrap, bootstrap-grid, bootstrap-reboot, custom, base, Site) including source maps
  • Scripts/ — 39 JavaScript files (jQuery 3.3.1, bootstrap, popper, modernizr, respond, jquery.validate) including ESM/UMD variants and source maps
  • fonts/ — 10 Montserrat font files (Regular + Bold in eot, svg, ttf, woff, woff2 formats)
  • Pics/ — 14 product images (1-12, dummy.png)

Spring Boot embedded Tomcat serves files from src/main/resources/static/ at the root URL path, so:

  • /Content/Site.css → CSS
  • /Pics/1.png → product image

Jira: NM-25
Depends on: NM-22 (Story 0.1 — Spring Boot project init)

Review & Testing Checklist for Human

  • Start the Spring Boot app (cd eShopModernizedSpringSolution && ./mvnw spring-boot:run) and verify http://localhost:8080/Content/Site.css returns CSS with text/css MIME type
  • Verify http://localhost:8080/Pics/1.png returns the product image with image/png MIME type
  • Spot-check a few JS files (e.g. http://localhost:8080/Scripts/jquery-3.3.1.min.js) and fonts (e.g. http://localhost:8080/fonts/Montserrat-Regular.woff2)

Notes

  • The .NET project has Site.css (capital S). The Jira AC references site.css (lowercase). Spring Boot is case-sensitive on Linux — the correct URL is /Content/Site.css. Future Thymeleaf templates (Story 1.x) will reference the correct case as the original .NET layout does (~/Content/Site.css).
  • The dev profile uses H2 in-memory DB, so the app can start without SQL Server for asset verification.

Link to Devin session: https://partner-workshops.devinenterprise.com/sessions/5eb988247e7845edaa8fb3f23a4a483c

Copy all static assets from eShopPorted/wwwroot/ to
eShopModernizedSpringSolution/src/main/resources/static/:
- Content/: CSS files (bootstrap, custom, base, Site)
- Scripts/: JavaScript files (jQuery, bootstrap, popper, etc.)
- fonts/: Montserrat font files (eot, svg, ttf, woff, woff2)
- Pics/: Product images (1-12, dummy)

91 files total. Spring Boot embedded Tomcat serves these at the
root URL path (e.g. /Content/Site.css, /Pics/1.png).
@devin-ai-integration
Copy link
Copy Markdown
Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants