Client -> sends (origin: yourwebsite.netlify.com) -> CORS –> Books API (server) –> ACAO (Access-Control-Allow-Origin) –> If ACAO, SUCCESS!
IMPORTANT! Insomnia does not give CORS error
presentation:
hasCorrectAttributes (jest)
filter results: .some(), .every()
pull request
fork, edit and commit in new branch -> create pull request –> create issue (paste in #of pr in write)
backtick code
“`code block
here“`
heroku (https: 443) wrapper –> assign port no for your site
your comp -> git ->/webhook->CI (g clone, run script, npm test (the naming matters))-> heroku
more complex: fan in/ fan out CI
https://travis-ci.org/
https://circleci.com/
nvm-windows / n (not windows)
git stash to avoid multiple ‘branches’ on g checkout
travis setup heroku
OR
language: node_js
node_js:
- 11.8.0
deploy:
provider: heroku
api_key:
secure: SOME_SECURE_KEY
app: books-api-jumpstart
on:
repo: jsstrn/books-api