This script helps to create or update Cassandra and Solr.
Download ZIP of this Github project, add scripts for Cassandra and Solr, configure and execute update.sh
- Add scripts for Cassandra and Solr
- in the folder
cassandra- copy and paste files from the APISpark folder :
modules\com.apispark.model.cell\resources\cassandra
- copy and paste files from the APISpark folder :
- in the folder
solr- copy and paste files from the APISpark folder :
modules\com.apispark.service.search\resources
- copy and paste files from the APISpark folder :
- Configure update.sh and accounts.sh
- edit
update.sh- define the variable
dse_home, like/opt/dse, without/bin
- define the variable
- edit
accounts.sh- define the variable
dse_home, like/opt/dse, without/bin
- define the variable
- Update database
- stop APISpark from eclipse
- execute
./update.sh
- Define credentials in
apispark-console
- at the root of the
apispark-consoleproject :- add
dev-config.yaml:
- add
dev: # config for the app served by 'grunt serve'
api_url: http://gblondeau.com:8182/api # your API server in local
docs_url: https://apispark.com/docs/tutorials/
user:
firstName: John
email: john.doe@gmail.com
userkey: fd63410c-69e3-47a2-b35b-7b1ca207ebc7
password: b0658f8b-0805-4f8a-a1ed-3e98e88cd140
local: # config for the app served by your local apispark
api_url: /api
docs_url: https://apispark.com/docs/tutorials/
- Start
- start APISpark in eclipse
- start APISpark console v2
- go to the config page :
- http://localhost:9000/config
- choose your user
- go to the dashboard :
- http://localhost:9000/dashboard
- you can create a new entity store
For Solr, see [https://github.com/restlet/apispark/wiki/DSE-4.5-Migration|https://github.com/restlet/apispark/wiki/DSE-4.5-Migration]