Skip to content

NithinKuruba/wfs-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Find Community Health Service Area(CHSA) - Web Application

Description

CHSA WEB application is designed to accept latitude/longitude coordinates and provide the associated community health service area

Getting Started

Dependencies/Pre-requisites

Installing

In the project directory ./wfs-app, run:

docker-compose up

  • Downloads mysql:latest and node:10 images

  • Builds wfs-ui and wfs-api artifacts

  • Creates a MySQL database instance and creates database objects by running wfs-app/Analytics.sql

  • Deployes artifacts in containers

Working with application

  • After installation, MySQL database will be available for connections and it can be found in docker compose logs

  • Application can be accessed at http://localhost:3080

  • Use MySQL workbench to login and query the database. The credentials are provided in the .env file under wfs-api

  • The number of API hits is stored in analytics database and auditlog table. Below are the queries

USE analytics;

SELECT COUNT(id) as API_HITS FROM AUDITLOG;

Un-Installing

docker-compose down

  • Removes database and application containers

Useful Commands

docker system prune -a - WARNING

This will remove:

  • All stopped containers

  • All networks not used by at least one container

  • All images without at least one container associated to them

  • All build cache

docker volume prune - WARNING

  • This will remove all local volumes not used by atleast one container

License

This project is licensed under the Apache License, Version 2.0.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published