https://github.com/zixia/ucapp
A WeChat like hybrid APP build on top of UCenter Home
https://github.com/zixia/ucapp
Last synced: 2 months ago
JSON representation
A WeChat like hybrid APP build on top of UCenter Home
- Host: GitHub
- URL: https://github.com/zixia/ucapp
- Owner: zixia
- License: apache-2.0
- Created: 2015-05-15T08:20:56.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2020-12-30T17:27:27.000Z (over 5 years ago)
- Last Synced: 2025-03-12T05:03:07.565Z (over 1 year ago)
- Language: PHP
- Homepage: http://17salsa.com/app
- Size: 15.1 MB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 18
-
Metadata Files:
- Readme: ReadMe.md
- License: LICENSE
Awesome Lists containing this project
README
# [17SALSA](http://17salsa.com/app/) UCHome App [](https://circleci.com/gh/AKAMobi/ucapp/tree/master)
[](https://waffle.io/AKAMobi/ucapp)
[](https://circleci.com/gh/AKAMobi/ucapp/tree/master)
[](https://github.com/AKAMobi/ucapp/issues)
[](https://gitter.im/AKAMobi/ucapp?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
[](https://ci.testling.com/AKAMobi/ucapp)
* View UCApp on GitHub - https://github.com/zixia/ucapp
* View 17salsa on [Android Market](https://play.google.com/store/apps/details?id=com.salsa17.home)
* View 17salsa on [Apple Store](https://itunes.apple.com/cn/app/17salsa/id1019231034)
See:
## Coding style
* JSCS: preset to google
* JSHint
* vim:
* pathogen
* syntastic vim-js-indent vim-sensible html5.vim
* color-theme distinguished
Reference: [https://github.com/showdownjs/code-style](https://github.com/showdownjs/code-style)
## Semantic Versioning
Given a version number MAJOR.MINOR.PATCH, increment the:
* MAJOR version when you make incompatible API changes,
* MINOR version when you add functionality in a backwards-compatible manner, and
* PATCH version when you make backwards-compatible bug fixes.
Additional labels for pre-release and build metadata are available as extensions to the MAJOR.MINOR.PATCH format.
Reference: [http://semver.org/](http://semver.org/)
## Init Project After Check Out
1. npm install -g ionic cordova gulp ios-deploy ios-sim
1. cd app
1. npm install
1. bower install
1. ionic resources
1. ionic browser add crosswalk
1. ionic config build
1. ionic platform add ios android
1. ionic hooks add
1. ionic add ionic-service-push
1. ionic build ios android
1. ionic serve --lab
## Debug
* Inspector: [Guide to Remote Debugging on iOS & Android](http://developer.telerik.com/featured/a-concise-guide-to-remote-debugging-on-ios-android-and-windows-phone/)
* Console Log:
```bash
ionic run android --livereload --consolelogs --serverlogs
```
## REST API
```shell
curl -u token https://17salsa.com/api/v2/feed
### API related HTTP header
* ERROR CODE
* X-UCAPP-CLIENT-VERSION
* X-UCAPP-SERVER-VERSION
* X-UCAPP-MESSAGE
common params:
* before/:date
* after/:date
* limit/:limit
/api/v2/auth
POST
/login
{username: $username, password: $password}
/logout
/api/v2/user
GET
/me - current user
/:id - {name, nick, sex, avatar, location, ...}
/:id/detail - {... ...}
/api/v2/event
GET
/ - lastest event id list
/:id - {...}
/:id/detail - {... ...}
/api/v2/message
GET
/ {uid, date}
/:uid - { {date,msg}, {}, ... }
POST
/:uid - {msg}
/api/v2/feed
/ - [ {...} ]
/api/v2/reply
/api/v2/like
/api/v2/contact
/api/v2/batch
POST
[
{
"method": "POST",
"path": "/1.1/classes/Post",
"body": {
xx: 'xx',
xx: 'xx'
}
},
{
"method": "POST",
"path": "/1.1/classes/Post",
"body": {
"content": "",
"user": ""
}
}
]