tailcallhq / tailcall

High Performance GraphQL Runtime
https://tailcall.run
Apache License 2.0
1.19k stars 213 forks source link

feat: tailcall init should be interactive #2195

Closed tusharmath closed 4 days ago

tusharmath commented 3 weeks ago

Tailcall init needs to be more interactive, here is the proposed design.

> tailcall init my-new-project
  ? File Format:
    - GraphQL
    - JSON
    - YML
  [INFO] File write: ./my-new-project/.tailcallrc.schema.json
  [INFO] File write: ./my-new-project/.tailcallrc.graphql
  [INFO] File write: ./my-new-project/.graphqlrc.yml
  [INFO] File write: ./my-new-project/main.graphql  

Technical Requirements

tusharmath commented 3 weeks ago

/bounty 50$

algora-pbc[bot] commented 3 weeks ago

💎 $50 bounty • Tailcall Inc.

Steps to solve:

  1. Start working: Comment /attempt #2195 with your implementation plan
  2. Submit work: Create a pull request including /claim #2195 in the PR body to claim the bounty
  3. Receive payment: 100% of the bounty is received 2-5 days post-reward. Make sure you are eligible for payouts

🙏 Thank you for contributing to tailcallhq/tailcall! 🧐 Checkout our guidelines before you get started. 💵 More about our bounty program.

Attempt Started (GMT+0) Solution
🔴 @varshith257 Jun 14, 2024, 3:35:20 PM WIP
🟢 @mayankt18 Jun 15, 2024, 8:31:08 AM WIP
🔴 @be-hunter Jun 23, 2024, 12:18:44 PM WIP
varshith257 commented 3 weeks ago

/attempt #2195 @tusharmath Using inquire library for it

amitksingh1490 commented 2 weeks ago

It should also generate a base configuration file for a "Hello, World!" GraphQL server, similar to how cargo init creates a new project.

varshith257 commented 2 weeks ago

@amitksingh1490 Almost everything is done. While generating user-selected file, do we need to create empty files or existing files - .tailcallrc.graphql - .tailcallrc.schema.json - .graphqlrc.yml in our project?

webbdays commented 2 weeks ago

@varshith257 let tailcallrc = include_str!("../../generated/.tailcallrc.graphql"); let tailcallrc_json: &str = include_str!("../../generated/.tailcallrc.schema.json");

webbdays commented 2 weeks ago

comes from source code.

mayankt18 commented 2 weeks ago

/attempt #2195 using inquire

algora-pbc[bot] commented 2 weeks ago

[!NOTE] The user @varshith257 is already attempting to complete issue #2195 and claim the bounty. We recommend checking in on @varshith257's progress, and potentially collaborating, before starting a new solution.

dekkku commented 1 week ago

/attempt #2195

algora-pbc[bot] commented 1 week ago

@be-hunter: Reminder that in 1 days the bounty will become up for grabs, so please submit a pull request before then 🙏