Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core: universal-box add storage command #111

Open
Abhishek-Mallick opened this issue Oct 2, 2024 · 1 comment
Open

core: universal-box add storage command #111

Abhishek-Mallick opened this issue Oct 2, 2024 · 1 comment
Labels
enhancement New feature or request hacktoberfest marks issues which are accepted under hacktoberfest 🤔Needs discussion Open to further discussions

Comments

@Abhishek-Mallick
Copy link
Owner

Abhishek-Mallick commented Oct 2, 2024

Feature Request for universal-box add <feature>

Is your feature request related to a problem you're trying to solve with Universal-Box? Please describe.
This feature aims to enhance Universal-Box by allowing users to dynamically add components to their applications using the command universal-box add <feature>. This flexibility will enable developers to customize their projects without relying on fixed templates.

Describe the solution you'd like
Implementing a command structure that allows users to add features such as storage and authentication dynamically. For example, when a user runs universal-box add storage, the following workflow should occur:

  1. Check the Existing Project Structure: Analyze the current project setup to understand its structure.
  2. Determine the Type of Project: Identify the type of project based on existing files.
  3. Ask the User Which Storage Solution to Integrate: Prompt the user with options like Firebase, AWS S3, or Local Storage.
  4. Install Relevant Packages: Based on the user's choice, install necessary packages (e.g., npm install firebase for Firebase).
  5. Create a Configuration File: Generate a configuration file (e.g., storageConfig.js) with default settings specific to the chosen storage solution.
   // storageConfig.js
   const firebaseConfig = {
       apiKey: "YOUR_API_KEY",
       authDomain: "YOUR_AUTH_DOMAIN",
       projectId: "YOUR_PROJECT_ID",
       storageBucket: "YOUR_STORAGE_BUCKET",
       messagingSenderId: "YOUR_MESSAGING_SENDER_ID",
       appId: "YOUR_APP_ID"
   };
  1. Generate Necessary Directories: Create a directory (e.g., /src/storage) to organize all storage-related code.

  2. Update Documentation: Automatically update README.md to include instructions on how to use the newly added functionality.

How would this feature improve Universal-Box?

  • Implementing this feature will significantly enhance Universal-Box by allowing developers to tailor their applications according to their specific needs. It promotes best practices by ensuring that all necessary configurations and dependencies are handled automatically, leading to better collaboration and fewer bugs in applications.

Additional context

  • I have some doubts about how the codebase will understand and customize itself effectively. One potential solution could be utilizing an in-house Language Model (LLM) tailored to our needs, rather than relying on third-party APIs. This approach would ensure long-term sustainability and cost-effectiveness for developers.
  • The same logic applies to implementing commands like universal-box add auth. We can start with the universal-box add storage feature and then replicate this approach for other commands.

This issue is open to discussions! Feel free to join our Discord for further conversation. I will also be creating similar issues like universal-box add auth if anyone wants to take that up.

@Abhishek-Mallick Abhishek-Mallick added the enhancement New feature or request label Oct 2, 2024
@Abhishek-Mallick
Copy link
Owner Author

This workflow/approach stated above is just an idea and is open for further discussions and redesigning.

@Abhishek-Mallick Abhishek-Mallick added help wanted Extra attention is needed hacktoberfest marks issues which are accepted under hacktoberfest 🤔Needs discussion Open to further discussions and removed help wanted Extra attention is needed labels Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hacktoberfest marks issues which are accepted under hacktoberfest 🤔Needs discussion Open to further discussions
Projects
None yet
Development

No branches or pull requests

1 participant