Pacific-College / uef-bb-chat-integration

2 stars 0 forks source link

chatbot-bb implementation consultation #1

Open fabyanmf opened 1 month ago

fabyanmf commented 1 month ago

Friend, thank you very much for the repo, I have a problem when deploying servers. The system gives me an error in the following fields and I don't know where to modify them

41 | CHAT_STAFF_URL: ${param:chat-staff-url} 42 | CHAT_DISPLAY_NAME: ${param:chat-display-name} 43 | FC_TOKEN: ${param:fc-token} 44 | WIDGET_ID: ${param:widget-id}

Also, I can't find where to enter the ApID parameter.


serverless --debug

s:core: { node: 'v20.15.0', os: 'linux', arch: 'x64', shell: '/bin/bash', cwd: '/home/ubuntu/environment/uef-bb-chat-integration/chat', nodeJsPath: '/home/ubuntu/.nvm/versions/node/v20.15.0/bin/node', scriptPath: '/home/ubuntu/.serverless/releases/4.1.12/package/dist/sf-core.js', scriptArgs: [ '--debug' ], logLevel: 'debug', isInteractive: true } s:core: { serverless_framework: '4.1.12' } s:main: Initializing s:core:router: { command: [], options: { debug: '*' }, versions: { serverless_framework: '4.1.12' }, customConfigFilePath: null, composeParams: undefined, composeResolverProviders: undefined, isWithinCompose: false, composeOrgName: null, composeServiceName: null }

Captura de pantalla 2024-07-17 a la(s) 5 55 26 p  m Captura de pantalla 2024-07-17 a la(s) 5 55 39 p  m

Dizolivemint commented 1 month ago

You are welcome! This was refactored from a Python example provided by Anthology. You will have to add the environment variables to your serverless dashboard and use the command npx sls login to login to your own dashboard. Those environment variables, you will have to get from the services you want integrate into the Blackboard chat.

You will need to request Premium APIs from Anthology and setup the app in developer.blackboard.com to get your App ID. Anthology has other examples using Python. If you are more comfortable in Python and you want a simple setup that doesn't cost you anything to test out, you can use render.com.

If you are more comfortable in React, I recommend using NextJS with Vercel. That stack is much easier than serverless or AWS CloudFormation setups, because you can create the entire application in NextJS, and you can develop a frontend much more quickly. If react is not your thing, or you haven't picked up a frontend framework, I recommend Vue, and you can accomplish the same full-stack application setup with Nuxt.

Before anything else, you should check out these Anthology docs, if you haven't. Good luck!