You can always start nodemon
right inside of VSCode, but I’ve found it a much better experience starting nodemon
in Terminal, and simply attaching VScode process to its --inspect
option.
Author Archives: lucia
Webpack: How to Import from Root
It can be easily set up with a module resolver:
Continue reading“Error authenticating user: Must specify two-factor authentication OTP code” with NPM Login
If 2-factor-authentication is enabled, an access token is needed in the place of password. Create one according to the steps here with the access for:
- read:packages
- write:packages
- delete:packages
How to Develop Emails with React: Running NextJS without Client JavaScript
Email development, oh thou necessary evils of the world.
Server side React (NextJS) would be helpful in constructing components and maintaining a united stack, but after the server render, no JavaScript or React is actually needed in the resulting HTML.
To completely disable client side JavaScript from document, do:
Continue readingCoronavirus: Real Numbers in China
I’m going to deviate from my usual nerdy posts and talk about something sadder.
The current coronavirus.
Continue readingGithub Login: How to get List of Private Organization Members from Github API
Our goal is to get all sorts of private information from a GitHub authenticated login.
Continue readingFlask: Session Does Not Persist between BluePrints
Because the session cookies of different blueprints have different paths. Set in configuration:
SESSION_COOKIE_PATH = '/'
And all should share the same session.
When does a session end?
With flask.session
, by default, session ends when browser is entirely exited. Merely closing tabs won’t erase sessions.
Database 101
Some blatantly obvious thing that I was oblivious to before dipping my toes into databases:
Continue reading