-
official Vercel example with-typescript-eslint-jest
-
useful tutorial
-
eslint disable next line
/* eslint-disable @typescript-eslint/no-empty-function */
error: () => {},- add in
.vscode/extensions.json - list extensions:
code --list-extensions
- yarn install
- certs
- install mkcert
- mkcert root certificate
- mkcert certificate for localhost, copy certs in certs folder
- add node env var in ~/.profile
- copy env.example to env.local, google, fb, db
- prisma migrate, seed
- vs code extensions
- port forward in devcontainer.json only needed with Dockerfile, already defined in docker-compose.yml
- Github readme
nfn→ const functionName = (params) => { }
---
rafce
import React from 'react';
const $1 = () => {
return <div>$0</div>;
};
export default $1;// disable run tests on vs code startup
// .vscode/settings.json
"jest.autoRun": "off"-
run
npb-db-devdatabase container -
right click app container
npb-app-dev->Attach to container-> open/appfolder ->install recommended extensions, open app onhttp://localhost:3001, that's it -
to see dev app node.js log
Show container log -
run tests, use local yarn scripts probably all works
-
git works in container
git config --list --show-origin
# or
git config --list- on a phone go to
https://192.168.x.x:3001 - enable Android debugger and connect phone with usb cable
- on computer Chrome go to
chrome://inspect/#devices - youtube tutorial