find-resources.sh

Created about 13 hours ago

attributes
source_urlhttps://github.com/mohi-devhub/antivibe/blob/9991d12ec52bc0b90eeab893fef27398be1ef616/scripts/find-resources.sh
#!/bin/bash
# find-resources.sh - Search for external learning resources
# Usage: ./find-resources.sh [concept] [language/framework]

CONCEPT="$1"
LANG="$2"

if [ -z "$CONCEPT" ]; then
    echo "Usage: ./find-resources.sh  [language]"
    echo "Example: ./find-resources.sh 'react hooks' react"
    exit 1
fi

echo "=== Finding resources for: $CONCEPT ==="
echo ""

# Map concepts to curated resource URLs
# In production, this could use web search or a local database

case "$CONCEPT" in
    *"react"*|"hooks"|"useState"|"useEffect")
        echo "--- React Resources ---"
        echo "Official Docs:"
        echo "- https://react.dev/reference/react - React API reference"
        echo "- https://react.dev/learn - React learning guide"
        echo "- https://react.dev/reference - Hooks API"
        ;;
    *"typescript"*|"types"|"generics")
        echo "--- TypeScript Resources ---"
        echo "Official Docs:"
        echo "- https://www.typescriptlang.org/docs/ - TypeScript docs"
        echo "- https://www.typescriptlang.org/play - Interactive playground"
        ;;
    *"express"*|"api"|"rest")
        echo "--- API/Express Resources ---"
        echo "Official Docs:"
        echo "- https://expressjs.com/en/guide/ - Express guide"
        echo "- https://expressjs.com/en/api/ - Express API reference"
        echo "Best Practices:"
        echo "- https://restfulapi.net/ - REST API design"
        ;;
    *"database"*|"sql"|*"postgres"|*"mysql")
        echo "--- Database Resources ---"
        echo "Official Docs:"
        echo "- https://www.postgresql.org/docs/ - PostgreSQL docs"
        echo "- https://dev.mysql.com/doc/refman/ - MySQL docs"
        echo "Learning:"
        echo "- https://sqlbolt.com/ - SQL interactive lessons"
        ;;
    *"auth"*|"jwt"|*"oauth"*|"password")
        echo "--- Authentication Resources ---"
        echo "Security Best Practices:"
        echo "- https://owasp.org/www-project-web-security-testing-guide/ - OWASP"
        echo "- https://jwt.io/ - JWT explained"
        echo "- https://auth0.com/docs - Auth0 docs"
        ;;
    *"docker"*|"container")
        echo "--- Docker Resources ---"
        echo "Official Docs:"
        echo "- https://docs.docker.com/get-started/ - Docker getting started"
        echo "- https://docs.docker.com/compose/ - Docker Compose"
        ;;
    *"test"*|"jest"|*"pytest"|*"unittest")
        echo "--- Testing Resources ---"
        echo "- https://jestjs.io/docs/getting-started - Jest docs"
        echo "- https://docs.pytest.org/ - Pytest docs"
        echo "- https://testing-library.com/ - Testing Library"
        ;;
    *"async"*|"await"|*"promise"|*"callback")
        echo "--- Async Programming Resources ---"
        echo "- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Async_operations"
        echo "- https://docs.python.org/3/library/asyncio.html - Python async"
        ;;
    *"git"*|"version control")
        echo "--- Git Resources ---"
        echo "- https://git-scm.com/doc - Pro Git book"
        echo "- https://learngitbranching.js.org/ - Interactive learning"
        ;;
    *"design pattern"*|"factory"|*"singleton"|*"observer")
        echo "--- Design Patterns Resources ---"
        echo "- https://refactoring.guru/design-patterns - Refactoring Guru"
        echo "- https://patterns.dev/ - Web patterns"
        ;;
    *)
        echo "--- General Resources ---"
        echo "Search suggestions:"
        echo "- Official documentation for $LANG"
        echo "- MDN Web Docs (for web technologies)"
        echo "- Stack Overflow (for specific problems)"
        echo "- YouTube tutorials by trusted creators"
        ;;
esac

echo ""
echo "=== Resource Search Complete ==="
echo "Note: These are starting points. Validate links before including in output."

Copyright (c) 2026 M Mohith License files are attached. MIT

MIT notice

MIT License

Copyright (c) 2026 M Mohith

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Children

No children yet.

Like how this is organised?

Build your own Memory tree on knowen.md: notes, decisions and tasks in one connected markdown graph, shared with your team and your AI agents.