0.2.12 • Published 2 years ago

astra-setup v0.2.12

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
2 years ago

astra-setup

Prerequisites

  • node.js version 15+
  • npm version 7+
  • These can be updated using instructions here.

Getting the module

The easiest way to grab this for use in your project is to do the following:

  • Make sure you have the most recent npm: npm install -g npm@latest
  • Install astra-js npm install -g astra-setup.
  • Run the command: npm exec astra-setup

Alternately, you can clone this repository and run npm install to pull in requirements.

Running the module

To setup your ASTRA instance, you want to run npm exec astra-setup If you get "npm exec not found" try npx astra-setup

This will do the following:

  • Have you go to your Astra Database to register or login. There is no credit card required to sign up. The 'Pay as you go' option gives you a huge amount of transactions for free:
    • 30 million reads
    • 5 million writes
    • 40 gigabytes of storage
  • Give steps to grab a Database Administrator Token and paste it into the input field
  • Ask you what database you want to use (default, existing, create)
  • Create or access the database
  • Create/update an .env file in the project root
  • Create/update an .astrarc file in your home directory
    • This can be used by httpie-astra pip3 install httpie-astra
    • It can also be used by the @astra/collections and @astra/rest node modules

Specify the database and keyspace

You can run the script and tell it which database/keyspace to use by using: npm exec astra-setup databasename keyspacename

0.1.21

2 years ago

0.1.22

2 years ago

0.1.23

2 years ago

0.1.24

2 years ago

0.1.25

2 years ago

0.1.26

2 years ago

0.2.12

2 years ago

0.2.11

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.2.7

2 years ago

0.2.6

2 years ago

0.2.9

2 years ago

0.2.8

2 years ago

0.2.2

2 years ago

0.2.5

2 years ago

0.2.4

2 years ago

0.1.20

3 years ago

0.1.19

3 years ago

0.1.18

3 years ago

0.1.17

3 years ago

0.1.16

3 years ago

0.1.15

3 years ago

0.1.14

3 years ago

0.1.13

3 years ago

0.1.12

3 years ago

0.1.11

3 years ago

0.1.10

3 years ago

0.1.9

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago