run:
npm i
rename config.json.example to config.json:
cp config.json.example config.json
configure your config.json
You're ready!
open your terminal on project repo and write
for all tests npm test
for one test mocha -g "[test name]"
open your terminal on project repo and write
npm start or node server.js
to use our script, your computer has to have
nodejs,npm,gitandpm2
- move the script
deploy.shto the folder containing the JUST_BI_API project
- from JUST_BI_API dir:
cp deployement_script/deploy.sh ../deploy.sh
- modify the deploy script and change the
BASEDIRvar to change the location of the project - rename
config.json.exampletoconfig.json - configure the
config.json - start deploy;
sh deploy.sh
configure awscli
aws configure
list all buckets and objetcts
aws s3 ls
list all buckets and objetcts in specific target
aws s3 ls s3://awsnode.actualit.info/
Create bucket
aws s3 mb s3://awsnode.actualit.info
Delete bucket (recursively)
aws s3 rb s3://awsnode.actualit.info --force
Upload object
aws s3 cp awstest.txt s3://awsnode.actualit.info/example/
// to copy the file on example dir do not forget the /,
// without the / your copy'll be renamed from awstest.txt to example
Delete object
aws s3 rm s3://awsnode.actualit.info/example/filename.txt
aws rekognition detect-faces --image "S3Object={Bucket=awsnode1.actualit.info,Name=gandhi.png}" --region eu-west-1