This projects requires node 16 and nvm to manage versions
git clone [email protected]:ryelo/ts-starter.git
nvm use
to set node versionyarn install
yarn start
- Open http://localhost:3000 to view it in the browser.
In the project directory, you can run:
yarn start
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
yarn start:prod
Builds the app in production mode and serves it.
Open http://localhost:5000 to view it in the browser.
yarn test
Runs the React Testing Library tests. All tests will be found in a __tests__
folder with a file named foo.test.tsx
.
Options:
yarn test -u
will update the snapshots
yarn lint
Runs the linter, will output any errors in the log.
Options:
yarn lint:fix
will fix any/all linting errors that eslint can fix automatically.
yarn deploy
Will run the linter, fix any errors, and then run the build. This is useful for CI/CD tooling before deploying to prod.