Giter Club home page Giter Club logo

editor-mysql's Introduction

3/10/18:

microqero has the important Docker info in its solitary Issue.

microqoder has the interesting capture-sha-in-code and write to CloudWatch Logs.

3/24/18: greendots-golang:

./bin/rquery This creates Polly mp3 files and stores them in ~environment/greendots-golang/static/img/.

3/25/18: editor-mysql: Be sure to use the same dbpassword in the next two CF commands:

# Create editordb in RDS.
aws cloudformation create-stack --stack-name editordb --template-body file://cf.yml \
    --region us-west-2 --parameter ParameterKey=dbusername,ParameterValue=editoruser \       
    ParameterKey=dbpassword,ParameterValue=REDACTED
# Create yacback (both Datatables/Express and supporting Golang).
aws cloudformation create-stack --stack-name editor-EC2 --template-body file://df.yml \
    --region us-west-2 --capabilities CAPABILITY_NAMED_IAM \
    --parameter ParameterKey=IP22,ParameterValue=`curl 169.254.169.254/latest/meta-data/public-ipv4` \      
    ParameterKey=dbendpoint,ParameterValue=`aws cloudformation describe-stacks --stack-name editordb --region us-west-2 | jq '.Stacks[].Outputs[0].OutputValue' | sed s/\"//g` \
    ParameterKey=IP8081,ParameterValue=REDACTED ParameterKey=dbpassword,ParameterValue=REDACTED \
    ParameterKey=githubpassword,ParameterValue=REDACTED

The above stack creation succeeds without intervention, i.e. its student.html connects with the :8077 server accessing the mysql database.

To check:

  • ssh in

  • ps -ef | grep "node index.js"

  • ps -ef | grep yacback

    To run manually:

cd ~/editor-mysql/scotSpryMedia
node index.js

I don't know what this is:

http://yacback.redf4rth.net:8081/inline-editing/mytab.html
http://yacback.redf4rth.net:8081/inline-editing/student.html
http://yacback.redf4rth.net:8081/inline-editing/admin.html
# Starting the db takes about six minutes.
aws rds start-db-instance     --db-instance-identifier editordb

aws rds describe-db-instances --db-instance-identifier editordb | \
    jq '.DBInstances[0].DBInstanceStatus' | sed s/\"//g

mysql editordb \
    --host=`aws rds describe-db-instances --db-instance-identifier editordb | \
    jq '.DBInstances[0].Endpoint.Address' | sed -e "s/\"//g"` \
    --user=editoruser --password=REDACTED
cd editor-mysql
./init-cloud9 <browser IP address> <editordb password> <AWS password for Polly>

If you are updating the Go, then kill the existing Go process, and re-run as follows:

ps -ef | grep yacback
#-->Kill the yacback job.
cd greendots-golang
export GOROOT=/usr/local/go
export GOPATH=/home/ec2-user/environment/greendots-golang
export PATH=$PATH:$GOROOT/bin
go install yacback
./bin/yacback <editordb password>

http://yacback.redf4rth.net:8077/static/img/student.html http://yacback.redf4rth.net:8077/static/img/admin.html

editor-mysql's People

Contributors

aupadhyay-eightfold avatar

Watchers

James Cloos avatar  avatar

Forkers

hubitor

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.