Use of this starter template assumes that you have a 'complete dev environment' setup - a terminal, Node, VS Code, at least. If not, you may want to start here.
- Click that big green button to start using it.
clone
your new repo from your GitHub to your local computercd
into theclone
d repo and enter:npm i
.npm start
- ESLint with the Standard JS style guide.
- Various VS Code 'settings' and 'extensions.' Look in the bottom right when you open this up in VS Code to install them. The settings are responsible for auto-formatting on save (among other things), and the extensions are responsible for the auto-formatting.
- Vitest for testing. Just do
npm test
ornpm t
.
npm run dep-graph
This project includes "dependency-cruiser". You can generate a dependency graph by running npm run dep-graph. This will be in SVG format by default. You can change this in the package.json file.
Note: You must have Graphviz installed for this to work. You can install it using Homebrew on macOS with brew install graphviz.
Here's an example of what the dependency graph looks like:
Run npm i
to get all the things installed.
npm start
will watch the app
directory for any changes using nodemon
To use the new experimental fetch
that's now in Node, just add: /* global fetch */
to the top of your file. This will appease ESLint.