Sunday, 22 November 2020

Database changes

 In order to add a new table by the "CREATE TABLE" in create.sql, you need to remove the existing data directory and create a new with the same name. To be sure, run docker-compose build too

Render HTML in NodeJS

https://vegibit.com/render-html-in-node-js/

MySQL Data Type DECIMAL issue:

DECIMAL(19,9) has 9 digits for the fractional part and 19-9 = 10 digits for integer part

Replaced REAL with DECIMAL because of small fractional digits (eg. 1201.2200000345)

Friday, 20 November 2020

Getting back to AWS and Docker

  1. Google "aws"
  2. My Account > AWS Management Console
  3. E-mail and $ password
  4. Select EC2 from services
  5. Instances > Instances

sudo service docker start

Project I tried was teams and I just ran
docker-compose up -d
Public IP: 13.59.176.184

Next step: check foods if suitable and functional or create new repository