https://github.com/hailiang-wang/ss-spa
Dialogue Tracking Service with SuperScript
https://github.com/hailiang-wang/ss-spa
chatbot superscript
Last synced: over 1 year ago
JSON representation
Dialogue Tracking Service with SuperScript
- Host: GitHub
- URL: https://github.com/hailiang-wang/ss-spa
- Owner: hailiang-wang
- License: mit
- Created: 2017-04-18T03:02:36.000Z (about 9 years ago)
- Default Branch: develop
- Last Pushed: 2017-05-17T11:49:14.000Z (about 9 years ago)
- Last Synced: 2025-02-10T01:43:24.000Z (over 1 year ago)
- Topics: chatbot, superscript
- Language: JavaScript
- Homepage: http://superscriptjs.com/
- Size: 3.23 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://hub.docker.com/r/samurais/ss-spa/) [](https://hub.docker.com/r/samurais/ss-spa/) [](https://microbadger.com/#/images/samurais/ss-spa)
[](https://microbadger.com/images/samurais/ss-spa "Get your own version badge on microbadger.com")

# Welcome

SuperScript Single Page Application is
* Easy to bootstrap SuperScript.
* Embrace WeakAI in minutes.
* Adopt chatbot quickly.
## Deps
Node.js v7.1.6+ (leverage async/await)
MongoDB
## Usage
```
git clone https://github.com/Samurais/ss-spa.git
cd ss-spa
npm install
bower install
cp config/environment/development.sample.js config/environment/development.js
cp config/log4js.sample.json config/log4js.json
npm start
open http://localhost:3001
```
## Watch
Re-parse and restart app when editing chat's scripts.
```
npm run dev:start
```
> Note, in the browser, socket.io would reconnect to server when the app is restarted, it avoids reloading client page.
## Test
```
npm run dev:start
npm test
```
> npm test -- --watch # to run testcase lively.
# Thanks to
[WebRTC chat with React.js](http://blog.mgechev.com/2014/09/03/webrtc-peer-to-peer-chat-with-react/)
[SuperScript](http://superscriptjs.com/)
[Wechaty](https://github.com/Chatie/wechaty)
# Docker
To start app with docker-compose.
```
./scripts/start-docker-spa.sh
open http://localhost:3001
```
Note, **samurais/ss-spa:0.0.1** can be built locally.
```
./scripts/build-docker-image.sh
```
# Work with [Wechaty](https://github.com/Chatie/wechaty)
[ss-spa](https://github.com/Samurais/ss-spa) can connect to your wechat personal account in minutes with [ss-wechaty](https://github.com/Chatie/ss-wechaty).
```
git clone git@github.com:Chatie/ss-wechaty.git && cd ss-wechaty
scripts/start-docker-compose.sh
```
# License
MIT