Code Monkey home page Code Monkey logo

xavibot's Introduction

Fullstack chatbot

This project was bootstrapped with React Chatbot kit on the frontend.

The backend is developedin Node.js and uses OpenAI's Assistant API.

Available Scripts

In the project directory, you can run:

npm startor npm start-server

Runs the server. Open http://localhost:3001 to view the different endpoints. Note that the actual URL for the server should be defined in the REACT_APP_API_URL of your .env file.

npm start-frontend

Launches the React frontend. Open http://localhost:3000

npm dev-server

Launches the server using nodemon so that it will restart whenever you change code while developing.

npm dev

Uses concurrently to launch both the server and the frontend.

npm build

Builds react front-end

npm deploy

Builds react front-end and deploys to github. Note that if you use this script you should edit the remote github URL to yours and possibly define GH_TOKEN locally if you are using token based authentication.

Environment variables

OPENAI_API_KEY

You can copy your OpenAI key here directly for local development

AZURE_CLIENT_ID, AZURE_TENANT_ID, and AZURE_CLIENT_SECRET

I am using Azure to deploy the server and store the OpenAI key remotely. You might not need this. Make sure to modify the app.js file accordingly.

REACT_APP_API_URL

Where you want to deploy the server. I recommend http://localhost:3001 for development.

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.