Skip to content

hailiang-wang/ss-spa

Repository files navigation

Docker Pulls Docker Stars Docker Layers

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

SuperScript

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

ss-spa can connect to your wechat personal account in minutes with ss-wechaty.

git clone git@github.com:Chatie/ss-wechaty.git && cd ss-wechaty
scripts/start-docker-compose.sh

License

MIT