-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed UI render issue, UI renders with uploadPDF component (#30)
* Adding scrape.py file for extracting tests * Fixed test measures exctraction to output the h3 tag text * Scraper scrapes required data successfully * Resolving merge conflicts * Scraper scrapes required data successfully (#13) * Adding scrape.py file for extracting tests * Fixed test measures exctraction to output the h3 tag text * Scraper scrapes required data successfully * Resolving merge conflicts * Added ability to scrape more than one URL * Added ability to scrape more than one URL (#14) * Added ability to scrape more than one URL * Added 3 more URLs * Added 3 more URLs (#15) * Adding scrape.py file for extracting tests * Fixed test measures exctraction to output the h3 tag text * Scraper scrapes required data successfully * Resolving merge conflicts * Added ability to scrape more than one URL * Added 3 more URLs * clean up scraping and add comments to scrape.py about whats wrong * Update README.md Added app name * Update README.md Replaced placed holder text in tech stack, features * Update README.md Edited heading three - sub heading * Delete requirements.txt * Update scrape.py * Added UI around uploadPDF component * Updated docker-compose, Dockerfile and removed main.py * Changed file name in app for index.js * Added index.html to public folder * Updated package.json * Fixed UI render issue, UI renders with uploadPDF component * Changed which text has the typewriter effect * Centered uplPDF component * Fixed typo in footer --------- Co-authored-by: kleenkanteen <[email protected]>
- Loading branch information
1 parent
61a65dd
commit a0bc97c
Showing
41 changed files
with
9,530 additions
and
218 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,34 @@ | ||
name: publish | ||
|
||
#on: [push] | ||
# Trigger on push events to any branch | ||
on: | ||
push: | ||
branches: | ||
- '*' | ||
|
||
jobs: | ||
publish-leap24-image: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Login to GitHub Conatiner Registry | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.CR_PAT }} | ||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.CR_PAT }} | ||
|
||
- name: Build the LEAP24 Docker image | ||
run: | | ||
docker build . --tag ghcr.io/sandramsc/leap-hackathon:latest | ||
docker push ghcr.io/sandramsc/leap-hackathon:latest | ||
- name: Build and push frontend Docker image | ||
working-directory: ./frontend | ||
run: | | ||
docker build . --tag ghcr.io/sandramsc/leap-hackathon-frontend:latest | ||
docker push ghcr.io/sandramsc/leap-hackathon-frontend:latest | ||
- name: Build and push backend Docker image | ||
working-directory: ./backend | ||
run: | | ||
docker build . --tag ghcr.io/sandramsc/leap-hackathon-backend:latest | ||
docker push ghcr.io/sandramsc/leap-hackathon-backend:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,40 @@ | ||
# Minimal base image | ||
#FROM alpine:latest | ||
FROM python:latest | ||
# Use a base image suitable for both frontend and backend requirements | ||
FROM node:14-alpine AS frontend-builder | ||
|
||
# Set working directory for frontend | ||
WORKDIR /app/frontend | ||
|
||
# Copy frontend source code | ||
COPY frontend/package*.json ./ | ||
RUN yarn install | ||
COPY frontend/ . | ||
|
||
# Build frontend | ||
RUN yarn build | ||
|
||
# Container working directory | ||
#WORKDIR /app | ||
# Use another stage for the backend | ||
FROM python:latest AS backend-builder | ||
|
||
# Set working directory for backend | ||
WORKDIR /app/backend | ||
|
||
# Copy backend source code | ||
COPY backend/requirements.txt ./ | ||
RUN pip install -r requirements.txt | ||
COPY backend/ . | ||
|
||
# Final stage | ||
FROM python:latest | ||
|
||
# Copy the application code into the container | ||
COPY main.py / | ||
# Copy files from frontend and backend stages | ||
COPY --from=frontend-builder /app/frontend/build /app/frontend/build | ||
COPY --from=backend-builder /app/backend /app/backend | ||
|
||
# Install any dependencies or build the application | ||
# Example commands: | ||
# RUN npm install | ||
# RUN pip install -r requirements.txt | ||
# RUN mvn clean package | ||
# Expose any necessary ports | ||
# EXPOSE 3000 | ||
|
||
# Expose the port on which the app runs | ||
#EXPOSE 3000 | ||
# Set working directory | ||
WORKDIR /app/backend | ||
|
||
# Commands to run the application | ||
CMD ["python", "./main.py"] | ||
CMD ["python", "scrape.py"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<meta name="theme-color" content="#000000" /> | ||
<meta | ||
name="description" | ||
content="Web site created using create-react-app" | ||
/> | ||
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" /> | ||
<!-- | ||
manifest.json provides metadata used when your web app is installed on a | ||
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/ | ||
--> | ||
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" /> | ||
<!-- | ||
Notice the use of %PUBLIC_URL% in the tags above. | ||
It will be replaced with the URL of the `public` folder during the build. | ||
Only files inside the `public` folder can be referenced from the HTML. | ||
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will | ||
work correctly both with client-side routing and a non-root public URL. | ||
Learn how to configure a non-root public URL by running `npm run build`. | ||
--> | ||
<title>Dr. Dracula</title> | ||
</head> | ||
<body> | ||
<noscript>You need to enable JavaScript to run this app.</noscript> | ||
<div id="root"></div> | ||
<!-- | ||
This HTML file is a template. | ||
If you open it directly in the browser, you will see an empty page. | ||
You can add webfonts, meta tags, or analytics to this file. | ||
The build step will place the bundled scripts into the <body> tag. | ||
To begin the development, run `npm start` or `yarn start`. | ||
To create a production bundle, use `npm run build` or `yarn build`. | ||
--> | ||
</body> | ||
</html> |
Oops, something went wrong.