FingerTown
목차
FingerTown
Server
DB
- MySQL
API
user
- register api - POST only
- url: http://oht.junho85.pe.kr/server/auth/register
- test: jQuery.post( "http://oht.junho85.pe.kr/server/auth/register",{ email: "junho85@daum.net",nickname: "my nick", avatar: 2, password: "1234", }) .done(function( data ) {console.log( "Data Loaded: " + data ); });
- login api - POST only
- url: http://oht.junho85.pe.kr/server/auth/login
- test: jQuery.post( "http://oht.junho85.pe.kr/server/auth/login", { email:"junho85@gmail.com", password: "1234" }) .done(function(data ) { console.log( "Data Loaded: " + data ); });
- logout api
- user list api - just for testing
item
- item (tree and others) data list api
- json - http://oht.junho85.pe.kr/server/item/get_list?town_id=1
- jsonp - http://oht.junho85.pe.kr/server/item/get_list?town_id=1&callback=?
- type (1 -tree, 2 - trashcan, 3 - streetlight, 4 - trafficlight)
- test: http://oht.junho85.pe.kr/server/item/get_list?town_id=1
[{"id":"1","user_id":"1","town_id":"1","detail":"testtree","type":"1","coord_x":"100","coord_y":"100","latitude":"0.000000","longitude":"0.000000","picture":"","likecount":"0","created":"2013-10-0520:41:45"},{"id":"2","user_id":"1","town_id":"1","detail":"testtree2","type":"1","coord_x":"150","co...
- item data api (single data) http://oht.junho85.pe.kr/server/item/get?item_id=1
test1{"id":"1","user_id":"1","town_id":"1","detail":"testtree","type":"1","coord_x":"100","coord_y":"100","latitude":"0.000000","longitude":"0.000000","picture":"","likecount":"0","created":"2013-10-0520:41:45"}
- item add api
- item delete api
CodeIgniter
test
Helper
- email 관련된거
git 사용
사용법
- clone
가져오기 git clone 으로 가져 온다.
- add
가져오기 git addapplication/ license.txt system user_guide/
- commit
커밋. 하지만 바로 올라기지는 않는다. push 로 올려 준다. git commit -m "test"
gitcommit -a ? 뭔가 잘 안되는듯?
- push
서버에 올린다. git push -u origin master