tailcallhq / tailcallhq.github.io

Website for Tailcall
http://tailcall.run/
32 stars 105 forks source link

Update the tailcall configuration on Getting Started section with the complete JsonPlaceholder configuration #374

Closed tusharmath closed 1 month ago

tusharmath commented 3 months ago

Add a section with a full tailcall configuration for JsonPlaceholder, start from the below configuration.

schema @server @upstream(baseURL: "https://jsonplaceholder.typicode.com") {
  query: Query
}

type Address {
  city: String
  geo: Geo
  street: String
  suite: String
  zipcode: String
}

type Company {
  bs: String
  catchPhrase: String
  name: String
}

type Geo {
  lat: String
  lng: String
}

type Photo {
  albumId: Int
  id: Int
  thumbnailUrl: String
  title: String
  url: String
}

type Post {
  body: String
  id: Int
  title: String
  userId: Int
}

type Comment {
  body: String
  email: String
  id: Int
  name: String
  postId: Int
}

type Query {
  comment(id: Int!): Comment @http(path: "/comments/{{.args.id}}")
  comments: [Comment] @http(path: "/comments")
  photo(id: Int!): Photo @http(path: "/photos/{{.args.id}}")
  photos: [Photo] @http(path: "/photos")
  post(id: Int!): Post @http(path: "/posts/{{.args.id}}")
  posts: [Post] @http(path: "/posts")
  todo(id: Int!): Todo @http(path: "/todos/{{.args.id}}")
  todos: [Todo] @http(path: "/todos")
  user(id: Int!): User @http(path: "/users/{{.args.id}}")
  users: [User] @http(path: "/users")
}

type Todo {
  completed: Boolean
  id: Int
  title: String
  userId: Int
}

type User {
  address: Address
  company: Company
  email: String
  id: Int
  name: String
  phone: String
  username: String
  website: String
}

Technical Requirements

tusharmath commented 3 months ago

/bounty 20$

algora-pbc[bot] commented 3 months ago

💎 $20 bounty â€ĸ Tailcall Inc.

Steps to solve:

  1. Start working: Comment /attempt #374 with your implementation plan
  2. Submit work: Create a pull request including /claim #374 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/tailcallhq.github.io! 🧐 Checkout our guidelines before you get started. đŸ’ĩ More about our bounty program.

Attempt Started (GMT+0) Solution
🔴 @neo773 Jul 21, 2024, 9:42:44 AM WIP
🔴 @Bhavyajain21 Jul 21, 2024, 9:43:46 AM WIP
đŸŸĸ @harshtech123 Jul 23, 2024, 1:04:02 PM WIP
đŸŸĸ @onyedikachi-david Jul 24, 2024, 11:45:09 AM WIP
neo773 commented 3 months ago

/attempt #374

Algora profile Completed bounties Tech Active attempts Options
@neo773    52 tailcallhq bounties
+ 74 bounties from 24 projects
TypeScript, Rust,
Go & more
Cancel attempt
Bhavyajain21 commented 3 months ago

/attempt #374

Algora profile Completed bounties Tech Active attempts Options
@Bhavyajain21    3 tailcallhq bounties
+ 11 bounties from 2 projects
TypeScript, Rust,
JavaScript & more
īšŸ360, īšŸ373
Cancel attempt
algora-pbc[bot] commented 3 months ago

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

harshtech123 commented 3 months ago

/attempt#374

harshtech123 commented 3 months ago

hey @tusharmath tailcall cli as per documentation is not working , for npm or yarn as well https://tailcall.run/docs/#installing-the-tailcall-cli is this correct ?

tusharmath commented 3 months ago

What's not working?

harshtech123 commented 3 months ago

this Ensure configurations are validated via the Tailcall CLI i am runninf tailcall - validate but it is saying tailcall is not a command and i also try to install tailcall by running commands as per above documentation , can you please tell me how to validate ?

algora-pbc[bot] commented 3 months ago

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

algora-pbc[bot] commented 3 months ago

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

algora-pbc[bot] commented 3 months ago

The bounty is up for grabs! Everyone is welcome to /attempt #374 🙌

harshtech123 commented 3 months ago

/attempt #378

onyedikachi-david commented 3 months ago

/attempt #374

Algora profile Completed bounties Tech Active attempts Options
@onyedikachi-david    2 tailcallhq bounties
+ 2 bounties from 1 project
JavaScript, Shell
Cancel attempt
algora-pbc[bot] commented 3 months ago

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