This is a counter single-page application (SPA) written in TypeScript with only native DOM APIs.
Check out the Counter, React Version example if you want to see an alternate version of this app written with React.
You can try a live demo of this app here:
https://counter-abdp.onrender.com
Note this uses Render's free service so if the project hasn't been visited in a while, the initial page load may take longer than usual since the service has to be spun up. Also if the budget of free hours has been used up, the project will fail to load.
This project extends the Basic Browser (TypeScript) starter with the following:
The remaining technologies are inherited from the starter:
- TypeScript: JavaScript with type safety
- CSS: The standard language for styling
- Embedded JavaScript (EJS): Templating language used to generate the build's
index.html
document - Jest: Testing framework used mainly for unit testing
- Mock Service Worker (MSW): API mocking library used to mock network requests
- Playwright: End-to-end (E2E) testing
- webpack: Bundler used to create builds
- Babel: Compiler used with webpack to support TypeScript and output cross-browser compatible code
- ESLint: Linter used to identify problems in TypeScript & JavaScript
- Stylelint: Linter used to identify problems in CSS
- Prettier: Formatter used to enforce code style
- Husky + lint-staged: Pre-commit hooks to check for type, lint, and formatting errors before Git commits are made
- Docker: Used for optional containerized development & testing environments
- npm: Package manager
Please refer to the "Getting Started" section in the Basic Browser (TypeScript) starter's README.md
.