Skip to content

Crepe-Party/just_BI_api

Repository files navigation

just_BI_api

Installing

run:
npm i

rename config.json.example to config.json:
cp config.json.example config.json

configure your config.json
You're ready!

Tests TDD

open your terminal on project repo and write
for all tests npm test
for one test mocha -g "[test name]"

Start server

open your terminal on project repo and write
npm start or node server.js

Deployement script

to use our script, your computer has to have nodejs, npm, git and pm2

  1. move the script deploy.sh to the folder containing the JUST_BI_API project
  • from JUST_BI_API dir: cp deployement_script/deploy.sh ../deploy.sh
  1. modify the deploy script and change the BASEDIR var to change the location of the project
  2. rename config.json.example to config.json
  3. configure the config.json
  4. start deploy; sh deploy.sh

awscli

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

Rekognition of faces

aws rekognition detect-faces --image "S3Object={Bucket=awsnode1.actualit.info,Name=gandhi.png}" --region eu-west-1

About

face regnognition idk

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors