This project was created on Apr 3, 2020 to showcase statistics on different countries. It's not longer working because the API stopped
https://serhiicho.codeberg.page/covid19-stats
- Vue 80.5%
- TypeScript 8%
- SCSS 5.6%
- HTML 4.2%
- JavaScript 1.2%
- Other 0.5%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .forgejo/workflows | ||
| public | ||
| src | ||
| .dockerignore | ||
| .gitignore | ||
| .prettierrc | ||
| compose.yml | ||
| Dockerfile | ||
| index.html | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
| tsconfig.node.json | ||
| vite.config.js | ||
COVID-19 Stats
Contribute
Container Engine
Build an Image
To build an image, navigate to the root of the project and run this command.
With Podman:
podman-compose build
With Docker:
docker compose build
Create node_modules
Run this command to install npm packages and generate a node_modules directory on your local machine.
With Podman:
podman-compose run --rm app npm i
With Docker:
docker compose run --rm app npm i
Run the Container
To run a container, navigate to the root of the project and run this command.
With Podman:
podman-compose up -d
With Docker:
docker compose up -d
You can visit http://localhost:3000 to see the site. Running the container will start Vite server.
Enter the Container
To enter inside of the container, run this command.
With Podman:
podman-compose exec app sh
With Docker:
docker compose exec app sh
You'll be able to run NPM commands inside of the container.
Destroy the Container
You can cleanup after working on a project by destroying things like networks with this command.
With Podman:
podman-compose down
With Docker:
docker compose down
NPM Commands
Project setup
npm i
Compiles and hot-reloads for development
npm run serve
Compiles and minifies for production
npm run build