Giter Club home page Giter Club logo

chatbot_minimester's Introduction

Chatbot Minimester Project

This project is part of a high school minimester course, introducing students to the development of a chatbot using modern web technologies. It utilizes Turborepo and pnpm for efficient management of the project's monorepo structure.

Using this Repository

To set up the project, clone the repository and install dependencies using pnpm:

git clone [email protected]:doctor-ew/chatbot_minimester.git
or
git clone https://github.com/doctor-ew/chatbot_minimester.git
cd chatbot_minimester
pnpm install

Querying Data

The project includes a GraphQL server that provides an API to fetch data. To query this data:

  1. Start the GraphQL server by running the appropriate development command (e.g., pnpm dev).

  2. Use curl to make a POST request. This is akin to asking a specific question to the server and getting a response. Here's what each part of the command does:

    • curl: A command-line tool used for sending requests and receiving responses over the network.

    • -X POST: Specifies that this is a POST request, a common HTTP method used for sending data to a server.

    • -H "Content-Type: application/json": Sets a header indicating the type of content being sent, in this case, JSON (JavaScript Object Notation).

    • -d '{"query": "..."}': The data being sent in the request. Here, it's a GraphQL query formatted as JSON. The query asks for specific fields of pocketMorties.

    • http://localhost:4000/rickmorty: The URL where the request is sent, pointing to the local GraphQL server and the specific endpoint.

curl -X POST \
     -H "Content-Type: application/json" \
     -d '{"query": "{ pocketMorties { id name type image evolution evolutions rarity hp atk def spd } }"}' \
     http://localhost:4000/rickmorty

Apps and Packages

This repository includes the following:

  • graphql: A GraphQL API server providing endpoints for chatbot data.
  • docs: a Next.js app for documentation.
  • web: another Next.js app, serving as the main frontend.

chatbot_minimester's People

Contributors

doctor-ew avatar turbobot-temp avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.