[![npm version](https://badge.fury.io/js/%40chat21%2Fchat21-web-widget.svg)](https://badge.fury.io/js/%40chat21%2Fchat21-web-widget)
# chat21-web-widget
> ***���� Do you want to install Tiledesk on your server with just one click?***
>
> ***Use [Docker Compose Tiledesk installation](https://github.com/Tiledesk/tiledesk-deployment/blob/master/docker-compose/README.md) guide***
Chat21-web-widget is a Free Live Chat Widget built on Firebase with Angular5 that lets you support and chat with visitors and customers on your website.
More information about web widget here : http://www.tiledesk.com
<img width="488" alt="dialogo_widgetchat_2" src="https://user-images.githubusercontent.com/32448495/37662363-35110862-2c57-11e8-8720-263d1ff96f29.jpg">
With Chat21-web-widget you can:
* Invite your website visitors to share feedback and suggestions to better understand their needs.
* Answer questions from website visitors instantly to increase trust
* Add a code snippet to your website easly
* It's a HTML5 widget built with Google Firebase, Angular5 and Bootstrap
# Features
* Send a direct message to a preset user
* Receive realtime support from your team
* Form to enter the chat sentiment
* Configure the widget with company logo and colors
* Chat21 Web Widget is free and open source.
# Prerequisites #
* Install Git
* Install Angular CLI with `npm install -g @angular/cli`. More info here https://github.com/angular/angular-cli#installation
* Create a Firebase project. Create one free on `https://firebase.google.com`
* "Chat21 Firebase cloud functions" installed. Instructions:`https://github.com/chat21/chat21-cloud-functions`
# Run Tiledesk with Docker Compose
Do you want to install all the Tiledesk components on your server with just one click?
Use [Docker Compose Tiledesk installation guide](https://github.com/Tiledesk/tiledesk-deployment/blob/master/docker-compose/README.md)
# Installation
* Clone the repository from master (or use a tagged release) with command: ```git clone https://github.com/chat21/chat21-web-widget <YOUR_PATH>```
* Move to the downloaded project path ```cd <YOUR_PATH>```
* Build running: `npm install`
## Dev configuration
Configure the environment.ts file in `src/environments/`.
Use the Firebase configuration file from your Firebase project to correctly configure the 'firebase' section.
#### environment.ts
```typescript
export const environment = {
production: true,
version: require('../../package.json').version,
remoteConfig: false, // for performance don't load settings from remote
remoteConfigUrl: '/widget-config.json',
loadRemoteTranslations: true,
remoteTranslationsUrl: 'https://<YOUR_REMOTE_TRANSLATIONS_URL>/',
chatEngine: "mqtt", // OR YOUR CUSTOM CHAT ENGINE
updloaEngine: "native", // OR YOUR CUSTOM UPLOAD ENGINE
fileUploadAccept:"*/*",
logLevel: '<YOUR-PREFERRED-LOG-LEVEL-NUMBER>',
firebaseConfig: {
apiKey: '123ABC..',
authDomain: 'XYZ.firebaseapp.com',
databaseURL: 'https://XYZ.firebaseio.com',
projectId: 'XYZ',
storageBucket: 'XYZ.appspot.com',
messagingSenderId: '123456',
appId: "CHANGEIT",
tenant: 'tilechat',
},
chat21Config: {
appId: 'tilechat',
MQTTendpoint: 'mqtt://<YOUR-MQTT-ENPOINT>',
APIendpoint: 'http://<YOUR-MQTT-API-ENPOINT>'
},
apiUrl: 'https://<YOUR-TILEDESK-API-URL>/',
baseImageUrl: 'https://<YOUR-BASE-IMAGE-URL>/',
defaultLang : 'en',
storage_prefix : 'widget_sv5',
authPersistence: 'LOCAL',
supportMode: true,
};
```
* `logLevel`: The Chat21-ionic supports 4 log levels. The order is as follows:
`Error < Warn < Info < Debug`
* `fileUploadAccept`: The Chat21-ionic allows you to manage the type of files that can be uploaded. By default, all file types are accepted.
### RUN in dev
Run the app with `ng serve`
## Prod configuration
For production installation, configure the environment.prod.ts file in `src/environments/`.
#### environment.prod.ts
```typescript
export const environment = {
production: true,
...
};
```
# Build for production
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `-prod` flag for a production build.
Build for production with : `ng build --prod --base-href --output-hashing none`
# Deploy
## Deploy to a Web Server
Copy the content of the dist folder to your Web Server (for example Apache or Nginx)
## Development server
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
## Widget in action
You can see a configuration of this widget in action on 'https://www.tiledesk.com'
# Deploy
## Deploy to a web Server
Copy the content of the dist folder to your Web Server (for example Apache or Nginx)
## Deploy to AWS S3 (Optional)
Run : `aws s3 sync . s3://tiledesk-widget`
Or With a different AWS Profile:
Run : `aws --profile f21 s3 sync . s3://tiledesk-widget`
If you use AWS Cloud Front enable gzip compression.
# Run with docker
To run Chat21-ionic on port 8080 run:
```
curl https://raw.githubusercontent.com/chat21/chat21-web-widget/master/env.sample --output .env
nano .env #configure .env file properly
docker run -p 4200:80 --env-file .env chat21/chat21-web-widget
```
没有合适的资源?快使用搜索试试~ 我知道了~
聊天小部件构建在FirebaseMQTT之上,可将聊天功能嵌入到您的网络移动应用程序中_TypeScript_下载.zip
共442个文件
ts:214个
html:53个
scss:45个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 145 浏览量
2023-04-24
14:15:10
上传
评论
收藏 2.48MB ZIP 举报
温馨提示
聊天小部件构建在FirebaseMQTT之上,可将聊天功能嵌入到您的网络移动应用程序中_TypeScript_下载.zip
资源推荐
资源详情
资源评论
收起资源包目录
聊天小部件构建在FirebaseMQTT之上,可将聊天功能嵌入到您的网络移动应用程序中_TypeScript_下载.zip (442个子文件)
chat21-web-widget 42B
nginx.conf 611B
material-dashboard.css 150KB
bootstrap.min.css 118KB
hover.css 112KB
website-poly.min.css 95KB
hover-min.css 93KB
font-awesome.min.css 28KB
cleanslate.css 20KB
normalize.css 7KB
iframe-style.css 4KB
styles.css 1B
Dockerfile 1KB
.editorconfig 245B
ionicons.eot 141KB
.gitignore 644B
.gitkeep 0B
index-dev.html 118KB
index.html 23KB
star-rating-widget.component.html 16KB
testi.html 15KB
conversation-content.component.html 15KB
conversation-header.component.html 9KB
test-new.html 8KB
app.component.html 7KB
test.html 6KB
conversation-footer.component.html 6KB
list-all-conversations.component.html 6KB
menu-options.component.html 6KB
prechat-form.component.html 5KB
conversation.component.html 5KB
home.component.html 4KB
home-conversations.component.html 4KB
eyeeye-catcher-card.component.html 4KB
test-buttons.html 4KB
list-conversations.component.html 4KB
last-message.component.html 4KB
bubble-message.component.html 4KB
message-attachment.component.html 3KB
conversation-preview.component.html 3KB
selection-department.component.html 3KB
test-auth-remote.html 3KB
interlal-frame.component.html 3KB
form-builder.component.html 2KB
return-receipt.component.html 2KB
test-custom-auth.html 2KB
launcher-button.component.html 2KB
404.html 2KB
test-auth.html 1KB
form-textarea.component.html 1KB
send-button.component.html 1KB
link-button.component.html 1KB
form-text.component.html 984B
avatar.component.html 804B
form-checkbox.component.html 656B
image.component.html 641B
index.html 528B
radio-button.component.html 446B
frame.component.html 413B
user-typing.component.html 274B
action-button.component.html 226B
text.component.html 198B
text-button.component.html 181B
form-label.component.html 146B
preview-loading-files.component.html 137B
html.component.html 69B
info-message.component.html 69B
user-profile.component.html 31B
user-login.component.html 29B
select.component.html 25B
favicon.ico 5KB
icon 621B
f21-background_1.jpg 88KB
f21-background2.jpg 71KB
test2.jpg 6KB
mqtt.min.js 189KB
mqtt.min.js 183KB
mqtt.min.js 163KB
jquery.min.js 85KB
chat21client.js 40KB
bootstrap.min.js 36KB
launch.js 15KB
tiledesk.js 2KB
karma.conf.js 923B
protractor.conf.js 722B
server.js 570B
package-lock.json 449KB
fr.json 3KB
es.json 3KB
it.json 3KB
en.json 3KB
tslint.json 3KB
package.json 2KB
.angular-cli.json 2KB
widget-config-template.json 938B
widget-config.json 774B
tsconfig.json 420B
tsconfig.spec.json 304B
tsconfig.e2e.json 235B
tsconfig.app.json 217B
共 442 条
- 1
- 2
- 3
- 4
- 5
资源评论
快撑死的鱼
- 粉丝: 1w+
- 资源: 9154
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功