SmashBot (React + Vite)
To Start project on local, follow these steps -
- Ensure that node and npm are installed on your machine
- Clone project directory
- cd into the project directory
- run
npm install
- run
npm run dev
The above steps will start the project and will point to the production server.
To point to the local backend server,
- go to
src/utils/constants.ts
- Comment this line - export const API_URL: string = 'https://smashbotbackendnew.azurewebsites.net'
- Uncomment this line - export const API_URL: string = 'http://localhost:3001'
To Install @smashorg/ai-bot as a dependency
-
npm install @smashorg/ai-bot@<latest-version>
You can find the latest version in package.json - In your react component, do the following
<Interview
smashUserId={id.toString()}
/>
smashUserId
is the unique identifier for the user in the smash database. Please send it in the string format.