Skip to content

AbhishekPednekar84/covid19-tracker-karnataka

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

This repository contains the React.js code for the https://kar.corona-tracker.co.in site.

Creating a local setup

Frontend

  1. Install node.js from nodejs.org (if needed). This website uses v12.13.1.
  2. Clone the current repository using git clone https://github.com/AbhishekPednekar84/covid19-tracker-karnataka
  3. Install the client dependencies from package.json in the client directory using the command npm install
  4. Run the application locally using npm start

The website with url http://localhost:3000 will launch automatically

Testing a production build locally

  1. Create the build by running npm run build in the client directory
  2. Install the express package by navigating to the server directory and running npm i express
  3. Run the build from the server directory using the command node server.js

The website should be accessible at http://localhost:3000.

Deployment

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 -

  1. Deploying a React application on a Linux server
  2. Continuous Deployment with Travis CI and DigitalOcean

Customization

To customize this site for a different Indian state/UT, refer to the wiki.


Screenshot

Home