본문 바로가기

Deploy React Frontend App on Heroku Heroku가 PaaS형태의 서비스로 app의 코드만 올려서 서비스가 가능합니다. 이번 포스트에서는 create-react-app으로 만들어진 기본앱을 heroku에 올리는 방법을 소개합니다. 예제를 시작하기 전에 heroku 계정을 있어야 합니다. 여기서는 소개하지 않습니다. 1. app을 생성합니다. create-react-app my-frontend-app --template typescript 2. heroku에 app을 생성합니다. cd my-frontend-app heroku create my-frontend-app --buildpack https://github.com/mars/create-react-app-buildpack.git 3. static.json 을 추가합니다. { "root":..
VS Code에서 mocha 실행하기 (launch.json옵션) mocha를 launch.json 파일만 만들어 주면 VS code에서 직접 실행할 수 있습니다. 아래에서 주의할 점은 unit test에서 describe()를 사용했다면 args 중 -u 다음에 tdd(Test Driven Development)가 아닌 bdd(Behavior Driven Development)로 해주어야 에러가 발생하지 않습니다. { // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version"..
firebase-admin을 mocha에서 실행시 terminate되지 않는 이슈 mocha를 사용해서 firebase-admin api들을 테스트하는 도중에 mocha가 종료되지 않는 현상이 발견되었는데, 아래와 같이 이슈가 보고 되었고, 해결방법은 app.delete()를 호출해주면 됩니다. Process not terminated. · Issue #91 · firebase/firebase-admin-node [READ] Step 1: Are you in the right place? For issues or feature requests related to the code in this repository file a Github issue. If this is a feature request make sure the issue title starts w... github.com..