Thief of Wealth
Heroku config 변수 설정
개발/Web Programming 2019. 11. 2. 08:20

변수를 확인합니다.heroku config GITHUB_USERNAME: joesmith OTHER_VAR: production $ heroku config:get GITHUB_USERNAME joesmith변수를 바꿉니다.heroku config:set GITHUB_USERNAME=joesmith변수설정을 해제합니다.heroku config:unset GITHUB_USERNAME 마지막으로 heroku config:push는 해야되는지 잘 모르곘음.

npm 자체 에러가 의심될때
개발/Web Programming 2019. 10. 27. 00:37

npm install -g npm@lastestsudo npm cache clean --forcerm -rf node_modulesnpm install

node_modules/path-to-regexp/index.js:63 에러
개발/Web Programming 2019. 10. 26. 21:55

아래와 같이 express 의 router의 경로를 잘못 설정해줘서 그런문제이다. const express = require('express'); const app = express(); app.get('/api/courses', (req, res)=>{ res.send(courses); }); app.get('/api/courses:id', (req, res)=>{ const course = courses.find(c => c.id === parseInt(req.params.id)); if (!course) res.send('The given id was not found...'); res.send(course); }); app.get(); app.get(); 위 함수처럼 router.get에 경로가 ..

fetch json파싱하는법
개발/Web Programming 2019. 10. 21. 11:17

function getCoinAPI() { fetch(API_URL) .then(response => response.json()) //json .then( data => { console.log(data); } )} 처럼해야한다 function getCoinAPI() { fetch(API_URL) .then( data => { console.log(data); } )} 이거처럼 하면 이상한 객체가 출력된다.

Git add, commit, push 되돌리기~
개발/Web Programming 2019. 10. 18. 14:00

https://gmlwjd9405.github.io/2018/05/25/git-add-cancle.html

JavaScript 초를 00:00:00으로 바꾸는 템플릿
개발/Web Programming 2019. 10. 17. 13:43

const formatDate = seconds => { const secondsNumber = parseInt(seconds, 10); let hours = Math.floor(secondsNumber / 3600); let minutes = Math.floor((secondsNumber - hours * 3600) / 60); let totalSeconds = secondsNumber - hours * 3600 - minutes * 60; if (hours

Chromium원정대
개발/Web Programming 2019. 10. 8. 22:01

http://www.bloter.net/archives/190417

ESlint 설정
개발/Web Programming 2019. 10. 4. 14:58

1. remove if you installed eslint globally $ npm uninstall eslint -g 2. install eslint extension on vscode https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint 3. install 3 packages manually, not by command on eslint installed globally, $ yarn add eslint-config-airbnb-base eslint eslint-plugin-import 4. make .eslintrc.js file and copy paste codes below module.exports = { en..

profile on loading

Loading...