This repository contains the React.js
code for the https://kar.corona-tracker.co.in site.
- Install
node.js
from nodejs.org (if needed). This website uses v12.13.1. - Clone the current repository using
git clone https://github.com/AbhishekPednekar84/covid19-tracker-karnataka
- Install the client dependencies from
package.json
in theclient
directory using the commandnpm install
- Run the application locally using
npm start
The website with url http://localhost:3000 will launch automatically
- Create the build by running
npm run build
in theclient
directory - Install the
express
package by navigating to theserver
directory and runningnpm i express
- Run the build from the
server
directory using the commandnode server.js
The website should be accessible at http://localhost:3000.
To deploy the application on a virtual private server and create a CI/CD pipeline with Travis CI, refer to the following articles on Code Disciples -
- Deploying a React application on a Linux server
- Continuous Deployment with Travis CI and DigitalOcean
To customize this site for a different Indian state/UT, refer to the wiki.