https://expressjs.com/en/guide/database-integration.html
$ git config --global --add merge.ff false
$ git config --global pull.rebase true
$ git clean -fd
$ git rebase -i --root
$ git commit --amend
$ git rebase --continue
$ git log --graph --oneline
- create database with free tier option
- #connectivity: create new VPC (or set proper VPC setting for rds)
- #connectivity - additional connectivity configuration - Publicly accessible: yes
- create button
$ locate -b '\atom'
- consider to use lodash npm _.merge
- use put or patch
http://jsonplaceholder.typicode.com/
Promise based HTTP client for the browser and node.js
async means a function returns a resolved Promise. await means wait until the Promise settles and return its result.
easy way to refer to the different properties + functions that a value has
new Date().setHours(now.getHours() + 1);
- postgresql default database / not using minitest / skip coffee auto generating
# ~/.railsrc
--database=postgresql
-T
--skip-coffee
$ rails db:create
$ rails db:migrate
$ curl -H "Content-Type: application/json" -X POST -d '{"username":"1st_user","password":"foobar"}' http://localhost:3001/login
$ curl -H "Content-Type: application/json" -X POST -d '{"username":"2nd_user","password":"foobar"}' http://localhost:3001/login
$ heroku git:remote -a [name of heroku app]
$ heroku run rails db:migrate
$ heroku run rails db:seed
- Choose the option one of this below
$ rubocop -x
$ rubocop --auto-correct
- Make exception
$ rubocop --auto-gen-config
$ sudo service postgresql restart
$ ps -aef | grep [rails]
$ kill -9 [pID]
$ sudo kill $(sudo lsof -t -i:[3000])
> p.errors.messages
- config > environments > production.rb
config.assets.compile = true
config.assets.digest = true
$ heroku pg:reset DATABASE
- with stimulus
https://source.unsplash.com/featured?galaxy
https://hipsum.co
- basic
sass --watch scss/style.ss:dist/css/style.css
- compressed
sass --watch scss/style.ss:dist/css/style.min.css --style compressed
<div class="clearfix">
<div class="float-left">
</div>
</div>
.clearfix:after {
content: ".";
visibility: hidden;
display: block;
height: 0;
clear: both;
}