Skip to content

Instantly share code, notes, and snippets.

@joe-oli
Created February 7, 2025 07:23
Show Gist options
  • Save joe-oli/1b2c752bbbac0a1bc189333a99be4453 to your computer and use it in GitHub Desktop.
Save joe-oli/1b2c752bbbac0a1bc189333a99be4453 to your computer and use it in GitHub Desktop.
# Node.js dependencies
/node_modules/
/ui/node_modules/
/ui/client/node_modules/
# Build outputs
/dist/
/ui/client/build/
/ui/client/.next/
/out/
# Environment variables
.env
.env.local
/ui/client/.env
# Logs and debugging
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
.vscode/
*.swp
# TypeScript build artifacts
*.tsbuildinfo
/ui/client/.turbo/
# IDE & Editor files
/.idea/
/.vscode/
/*.suo
/*.ntvs*
/*.njsproj
/*.sln.cache
# ASP.NET Core bin/obj folders
/server/**/bin/
/server/**/obj/
# ASP.NET Core user secrets
/server/**/appsettings.Development.json
# EF Core migrations
/server/**/Migrations/
# ASP.NET Core publish outputs
/server/**/wwwroot/
# Coverage and test reports
/coverage/
/server/**/TestResults/
/server/**/coverage/
# Ignore global package managers lockfiles
/package-lock.json
/ui/package-lock.json
/ui/client/package-lock.json
/yarn.lock
/ui/yarn.lock
/ui/client/yarn.lock
/pnpm-lock.yaml
/ui/pnpm-lock.yaml
/ui/client/pnpm-lock.yaml
# Others
.DS_Store
Thumbs.db
@joe-oli
Copy link
Author

joe-oli commented Feb 7, 2025

The above .gitignore file covers both React (TypeScript) and ASP.NET Core (Visual Studio):

This setup ensures:

  • node_modules/ and dist/ are ignored for the React frontend.
  • bin/ and obj/ folders are ignored for ASP.NET Core.
  • Secret config files like appsettings.Development.json are ignored.
  • IDE/editor-specific files (VS Code, JetBrains, etc.) are ignored.
  • EF Core migration files and test result files are ignored.

YAY! 🚀

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