Skip to content

Binh-NA/covid-19

Repository files navigation

Covid 19

Update covid 19 situation in the world

  • Dashboard
  • Detail country

New Features!

You can also:

Updated with the latest information about covid 19 and provide reasonable solutions for yourself. Design by Binh NA

Tech

Open source projects:

  • React Hooks - A JavaScript library for building user interfaces.
  • NextJS - The React Framework for Production.
  • Typescript - TypeScript extends JavaScript by adding types.
  • Tailwind Css - Rapidly build modern websites without ever leaving your HTML.
  • Jest - Jest is a delightful JavaScript Testing Framework with a focus on simplicity.
  • ESLint - Find and fix problems in your JavaScript code.
  • Prettier - Prettier is an opinionated code formatter.

And Covid 19 is open source with a public repository on GitHub.

Installation

Dillinger requires Node.js to run.

Install the dependencies and devDependencies and start the server.

yarn

$ cd covid-19
$ yarn install
$ yarn run build
$ yarn run dev

npm/npx

$ cd covid-19
$ npm install
$ npm run build
$ npm run dev

For production environments...

$ create file .env.production
$ set API_HOST = "host name"
$ yarn run dev / npm run dev

Test code

npm/npx

$ npm run test
$ npm run test --coverage

yarn

$ yarn run test
$ yarn run test --coverage

Development

N/A

Building for source

For production release:

$ yarn run build

Docker

Dillinger is very easy to install and deploy in a Docker container.

By default, the Docker will expose port 80, so change this within the Dockerfile if necessary. When ready, simply use the Dockerfile.

docker run

Verify the deployment by navigating to your server address in your preferred browser.

127.0.0.1

License

MIT

Thanks.