Skip to content

lchaboud-restlet/apispark-database-update

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Create or Update Cassandra and Solr

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

  1. Add scripts for Cassandra and Solr

Cassandra

  • in the folder cassandra
    • copy and paste files from the APISpark folder : modules\com.apispark.model.cell\resources\cassandra

Solr

  • in the folder solr
    • copy and paste files from the APISpark folder : modules\com.apispark.service.search\resources
  1. Configure update.sh and accounts.sh

  • edit update.sh
    • define the variable dse_home, like /opt/dse, without /bin
  • edit accounts.sh
    • define the variable dse_home, like /opt/dse, without /bin
  1. Update database

  • stop APISpark from eclipse
  • execute ./update.sh
  1. Define credentials in apispark-console

  • at the root of theapispark-console project :
    • add dev-config.yaml :
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/
  1. Start

Annexe. Help if it not works

For Solr, see [https://github.com/restlet/apispark/wiki/DSE-4.5-Migration|https://github.com/restlet/apispark/wiki/DSE-4.5-Migration]

About

APISpark - Script for database update

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages