|
8 | 8 |
|
9 | 9 | # vue-advanced-chat |
10 | 10 |
|
11 | | - |
| 11 | + |
12 | 12 |
|
13 | 13 | ## Sponsors |
14 | 14 |
|
15 | 15 | <div align="center"> |
16 | | - <a target="_blank" href="https://chatkitty.com"> |
17 | | - <img alt="ChatKitty sponsor" src="demo/src/assets/sponsors/chatkitty.png" width="220"> |
| 16 | + <a target="_blank" href="https://chatkitty.com/docs"> |
| 17 | + <img alt="ChatKitty sponsor" src="demo/firebase/src/assets/sponsors/chatkitty.png" width="220"> |
18 | 18 | </a> |
19 | | - <div>Easy to use <a target="_blank" href="https://chatkitty.com">chat API/Server</a> with scalable infrastructure</div> |
| 19 | + <div>Easy to use <a target="_blank" href="https://chatkitty.com/docs">Chat API</a> with scalable infrastructure</div> |
20 | 20 | </div> |
21 | 21 |
|
22 | 22 | ## Features |
@@ -72,6 +72,7 @@ You will get a fully working chat application for web and mobile: |
72 | 72 | - [Props data structure](#props-data-structure) |
73 | 73 | - [Events API](#events-api) |
74 | 74 | - [Named Slots](#named-slots) |
| 75 | +- [Using with ChatKitty](#using-with-chatkitty) |
75 | 76 | - [Using with Firestore](#using-with-firestore) |
76 | 77 |
|
77 | 78 | <br> |
@@ -846,23 +847,25 @@ Example: |
846 | 847 |
|
847 | 848 | <br> |
848 | 849 |
|
| 850 | +## Using with ChatKitty |
| 851 | + |
849 | 852 | ## Using with Firestore |
850 | 853 |
|
851 | 854 | ### Source code |
852 | 855 |
|
853 | | -You can find the source code to implement a full featured chat app using Firebase/Firestore inside the `demo` folder. |
| 856 | +You can find the source code to implement a full-featured chat app using Firebase/Firestore inside the `demo/firebase` folder. |
854 | 857 | <br> |
855 | 858 | To test it using your own Firebase project: |
856 | 859 |
|
857 | 860 | - Setup Cloud Firestore (to store users and rooms) and Realtime Database (to store users online status) |
858 | 861 | - Clone this repository: `git clone https://github.com/advanced-chat/vue-advanced-chat.git` |
859 | | -- Inside `demo/src/database/index.js` file, replace the line `const config = ...` by your own Firebase config |
860 | | -- Go inside `demo` folder and run `npm run serve` |
| 862 | +- Inside `demo/firebase/src/database/index.js` file, replace the line `const config = ...` by your own Firebase config |
| 863 | +- Go inside `demo/firebase` folder and run `npm run serve` |
861 | 864 |
|
862 | 865 | ### Data structure |
863 | 866 |
|
864 | | -If you decide to use the same code as in the `demo` folder to create your chat app, you need to have a specific Firestore data structure.<br> |
865 | | -To help you get started, I added in `demo/src/App.vue` a method `addData` to initialize some data on your Firestore database. |
| 867 | +If you decide to use the same code as in the `demo/firebase` folder to create your chat app, you need to have a specific Firestore data structure.<br> |
| 868 | +To help you get started, I added in `demo/firebase/src/App.vue` a method `addData` to initialize some data on your Firestore database. |
866 | 869 |
|
867 | 870 | #### Users collection |
868 | 871 |
|
|
0 commit comments