goby
goby copied to clipboard
A react native code push server written in Go
goby
As we know microsoft CodePush cloud is slow in China, we can use goby to build our's. We can use qiniu or OSS to store the files, because it's simple and quick! Or you can use local storage, just modify conf/app.ini file, it's simple configure.
INSTALL FROM BINARY
Linux
Windows
Darwin
$ unzip goby-*.zip
$ ./goby server #open http://127.0.0.1:3000 in browser and configure it.
$ code-push login http://127.0.0.1:3000
INSTALL FROM SOURCE CODE
Dependencies:
- go
- glide
- code-push-cli (optional)
- Use react-native-code-push or react-native-goby in client project.
$ git clone https://github.com/MessageDream/goby.git
$ cd goby
$ glide install
$ go build goby.go
$ ./goby server #open http://127.0.0.1:3000 in browser and configure it.
$ code-push login http://127.0.0.1:3000
DIFF UPDATE
If you want to client just download the diff code, according to the following steps:
- Edit
conf/app.ini
>[package]
>ENABLE_GOOGLE_DIFF = true
- Use react-native-goby replace react-native-code-push in client project.
SUPPORTED
Database
- mysql
- postgres
- sqlite3
- tidb
Cache
- memory
- file
- memcache
- redis
Storage
Log
- console
- file
- database
- connection(tcp、unix or udp)
- email(smtp)
License
MIT License read