Skip to content

kunjanshah0811/dice_todo_task1

Repository files navigation

DICE Website

Actions Status

This is a repo containing DICE research group website.

Structure

  • /pages folder contains basic markdown / mdx pages for the website
  • /data folder contains RDF (Turtle) files with data used to generate pages for the website
  • /images folder contains images used in the website (will be optimized build-time)
  • /scripts folder contains scripts and templates that build the website (Gatsby and such)

For more detailed info see the wiki and the README in scripts.

Certainly! Here's the README file formatted for GitHub:


Chatbot Integration with Flask Server

Prerequisites

  • Node.js Version: 18.20.3 LTS
  • Python Packages: Flask, Flask-CORS

Setup Instructions

1. Install Dependencies

Install Node.js dependencies for the dice-website:

$ npm install

Install Flask and Flask-CORS for the server:

$ pip install flask flask-cors

2. Start the Flask Server

Run the Flask server to handle chatbot interactions:

$ python app.py

3. Start the dice-website React App

Start the React application for the chatbot interface:

$ npm start

The dice-website will be accessible at http://localhost:8000/.

4. Access GraphiQL (Optional)

Explore the GraphQL schema and data using GraphiQL:

http://localhost:8000/___graphql

Usage

  1. Open http://localhost:8000/ in your browser.
  2. Interact with the chatbot panel on the website.
  3. Input messages will be sent to the Flask server (http://localhost:5000/reverse).
  4. The server will process the input (reverse it) and send back the result to display in the chatbot panel.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published