jameelio / health-conditions-scraper

Mono-Repo for searching health conditions , utilizing an api which has scraped data from external sources

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Backend and Frontend Health API

Clone Applications

cd apps

git clone https://github.com/jameelio/health-frontend.git cp ./health-frontend/.env.example ./health-frontend/.env

git clone https://github.com/jameelio/health-backend.git

cp ./health-backend/.env.example ./health-backend/.env

Navigate back to root

Apps

Docker

This repo is configured to be built with Docker, and Docker compose. To build all apps in this repo:

# Create a network, which allows containers to communicate
# with each other, by using their container name as a hostname
docker network create app_network

# Build prod
docker-compose -f docker-compose.yml build

# Start prod in detached mode
docker-compose -f docker-compose.yml up -d

Frontend UI

Open http://localhost:8080

Backend Api

http://localhost:3000/symptoms/:{searchTerm}

Example

curl --location --request GET 'http://localhost:3000/symptoms/head'

To shutdown all running containers:

# Stop all running containers
docker kill $(docker ps -q) && docker rm $(docker ps -a -q)

# Do not run this
# docker system prune

About

Mono-Repo for searching health conditions , utilizing an api which has scraped data from external sources


Languages

Language:Shell 100.0%