This repository was archived by the owner on Jun 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] Prepare for first release (#49)
* [FEATURE] Made the page dynamic * [LICENSE] Added License doc strings as suggested by AGPLv3 License * predicts score * crawler complete * Website and crawler integrated * SEO tags * Cleaned query params(#57) * Dockerfiles set up(#59) * Improved UI * [TEST] Added basic tests Co-authored-by: Shreyas Raviprasad <[email protected]> Co-authored-by: Sammith S Bharadwaj <[email protected]> Co-authored-by: scientes <[email protected]> Co-authored-by: Bastian <[email protected]> Co-authored-by: Daniel <[email protected]> Co-authored-by: SammithSB <[email protected]> Former-commit-id: 1a95407 [formerly 4d22229 [formerly 19ef365]] Former-commit-id: 6a8e5a2abbea36930e12b44b534ec5e6e69762d0 Former-commit-id: d045b2e Former-commit-id: b4fe904
- Loading branch information
Showing
417 changed files
with
1,969 additions
and
3,429 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
This file was deleted.
Oops, something went wrong.
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,15 @@ | ||
FROM tiangolo/uvicorn-gunicorn-fastapi:python3.8-slim as compile-image | ||
|
||
WORKDIR /app | ||
RUN apt-get update && \ | ||
apt-get -y install gcc mono-mcs && \ | ||
rm -rf /var/lib/apt/lists/* | ||
COPY ./requirements.txt /app/requirements.txt | ||
RUN pip install --no-cache-dir --user -r /app/requirements.txt; rm -r /tmp | ||
|
||
FROM tiangolo/uvicorn-gunicorn-fastapi:python3.8-slim | ||
COPY --from=compile-image /root/.local /root/.local | ||
COPY ./app /app/app | ||
COPY ./crawler /app/crawler | ||
COPY ./scrapy.cfg /app/scrapy.cfg | ||
ENV PYTHONPATH=/app |
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,16 @@ | ||
|
||
FROM python:3.8-slim as build | ||
|
||
WORKDIR / | ||
|
||
COPY ./requirements.txt ./requirements.txt | ||
RUN apt-get update && \ | ||
apt-get -y install gcc mono-mcs && \ | ||
rm -rf /var/lib/apt/lists/* | ||
RUN pip install -r requirements.txt | ||
|
||
COPY ./app /app | ||
COPY ./crawler /crawler | ||
COPY ./scrapy.cfg /scrapy.cfg | ||
|
||
ENTRYPOINT ["uvicorn", "app.main:app"] |
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,22 @@ | ||
""" | ||
Module which runs the web server for the project | ||
Copyright (C) 2020 Royston E Tauro & Sammith S Bharadwaj & Shreyas Raviprasad | ||
This program is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU Affero General Public License as published | ||
by the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU Affero General Public License for more details. | ||
You should have received a copy of the GNU Affero General Public License | ||
along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
""" | ||
|
||
import sys | ||
|
||
sys.path.insert(1, "..") |
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,20 @@ | ||
""" | ||
Module to set path of files in the directory | ||
Copyright (C) 2020 Royston E Tauro & Sammith S Bharadwaj & Shreyas Raviprasad | ||
This program is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU Affero General Public License as published | ||
by the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU Affero General Public License for more details. | ||
You should have received a copy of the GNU Affero General Public License | ||
along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
""" | ||
import sys | ||
|
||
sys.path.insert(1, "fantasy_cricket/") |
Oops, something went wrong.