Skip to content

C23-DF02-DiskusAI-Dicoding-Indonesia/DiskusAI-App

Repository files navigation

DiskusAI-App

docker pull antsaka/diskusai-app:frontend-integrated

This is a DiskusAI front-end application designed to showcase the capabilities of Chatbot serving and Search bar serving APIs. The app, powered by Node.js and Express, allows users to explore the various features offered by each API and their seamless integration. It acts as a consumer of APIs from external websites, leveraging CORS support to facilitate secure communication between the app and the APIs.

To run the app, follow these steps:

  • Make sure you have Node.js installed on your system. You can download it from the official Node.js website (https://nodejs.org) and follow the installation instructions for your operating system.

  • Create a new directory for your project and navigate to it in your terminal or command prompt.

  • Copy the code you provided and save it in a file named app.js within your project directory.

  • Open a terminal or command prompt and navigate to your project directory.

  • Run the following command to install the required dependencies:

npm install express

This will install the Express framework.

  • Once the dependencies are installed, you can start the server by running the following command:
node app.js

You should see a message indicating that the server is running on http://localhost:4000.

You should now be able to navigate to different routes such as /chatbot, /searchbar, and /integrated to access the corresponding HTML files.

Note: Make sure you have the necessary HTML files (index.html, chatbot.html, searchbar.html, integrated.html) in the same directory as your app.js file, or adjust the file paths accordingly in your code.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published