bucketed
v0.3.0
Published
This tool will help in deploying static website to cloud storage/bucket.
Downloads
4
Readme
Bucketed
This tool helps in deploying static website to cloud storage/bucket.
Bucketed allows a simple and elegant way of deploying your static websites to cloud storage/bucket providers. As many of the cloud providers give the facility of hosting a static website through cloud storages such as Google Cloud Storage, AWS S3 etc. You can also integrate Bucketed with your CD tool for autonomous deployment of your site generated through Angular, React etc.
Table of Contents:
Prerequisite
Bucketed is an npm tool written in nodejs, so it is mandatory to have npm and nodejs in the system, where Bucketed will run. Please install following versions -
- Nodejs >= 8.6.0
- NPM >= 5.0.0
Installation
Bucketed will be installed as a global dependency to support cli interface. Install it using the following command -
npm install -g bucketed
Usage
To use bucketed, it important to create a config file in the root of the project with name .bucketed. This can be done via two ways -
- Creating config file interactively using bucketed init command. To do that follow these steps -
bucketed init
After executing above command, answer the questions asked from console and it will create a config file with the name .bucketed at the location from where command has run. You can also specify the location of config file by passing --config or -c option. see below -
bucketed init -c ./sample-project/my-bucketed-configuration
- Manually creating config file. This config file is written in YAML and contains following information -
version: 0.1.0
project:
name: sample-website-project
distDir: ./dist
vendor:
type: gcloud
projectID: sample-bucket-project
keyLocation: \keys\xxxx-xxxx-12345.json
bucketName: sample-bucket
Version
(Optional) It is the version of Bucketed.project
->name
(Optional) Name of your static website projectproject
->distDir
(Required) Path to the directory where static web files are present. It is the path where your index.html is present.vendor
->type
(Required) Your cloud bucket provider. As of now only Google Cloud Storage (gcloud) and Amazon Web Services (aws) are supported.vendor
->projectID
(Required if vendor is gcloud) Your google cloud project id.vendor
->keyLocation
(Required) Your cloud service account key file (in json). Storage API should be enabled for this service account.vendor
->bucketName
(Required) Your cloud bucket name. Files in your distDir will be uploaded to this bucket.
After setting up above file, run following command to initiate upload process-
bucketed deploy
Note: If you running this command somewhere other than the directory where your .bucketed file is present, then use --config or -c option to specify the location of config file. See below -
bucketed deploy -c ./sample-project/my-bucketed-configuration
Maintainer
Roadmap
This will include list of planned features for the tool. see ROADMAP.md
Contributing
Please contribute by exploring the tool and reporting the bugs or providing suggestions for new features on Github Issues.