Haoshiyou-Server, an API server for haoshiyou.org
Haoshiyou-Server
is the server for haoshiyou.org. Please find more Developer Documentation
under docs
Powered by StrongLoop/ApiConnec
-
Start the MySQL server on your MacBook
-
Start the Server using API Connect
slc arc
then open a browser to go to http://127.0.0.1:3000/
,
- Though GUI, first run in
haoshiyou-server
folder,
apic edit
then open a browser to go to http://127.0.0.1:9000/
,
then query the server by
curl --request GET \
--url 'http://0.0.0.0:3000/api/HsyListings' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'x-ibm-client-id: default' \
--header 'x-ibm-client-secret: SECRET' \
--insecure
- Or visits local instance at http://0.0.0.0:3000/api/HsyListings/f8e40c34-e09a-4c2f-abb2-c5fe685338be
- Through CLI, run
npm start
Generate Angular2 SDK
./node_modules/.bin/lb-sdk server/server \
<client source code> \
-d ng2web -i disabled -v enabled
for example, for haoshiyou-dev
./node_modules/.bin/lb-sdk server/server \
../haoshiyou-dev/haoshiyou/src/loopbacksdk \
-d ng2web -i disabled -v enabled
./node_modules/.bin/lb-sdk server/server \
../haoshiyou-ai/loopbacksdk \
-d ng2web -i disabled -v enabled
or for haoshiyou-bot
./node_modules/.bin/lb-sdk server/server \
../haoshiyou-bot/v1/loopbacksdk \
-d ng2web -i disabled -v enabled
or for haoshiyou-ai
./node_modules/.bin/lb-sdk server/server \
../haoshiyou-ai/loopbacksdk \
-d ng2web -i disabled -v enabled
git push heroku master