-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update redwood / Add Docker / Fix Scraper #13
Open
bozdoz
wants to merge
17
commits into
lachlanjc:main
Choose a base branch
from
bozdoz:update-redwood
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 16 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
56d6f36
updates redwood
8ae58cc
fixes scraper to work with worldometers
89b8f1a
removes accidental scaffold css
5f526f9
delets all redwood types
387d6cf
ignores redwood types
aec6487
updates package json resolutions
b4ab9c5
updates yarn.lock
0c3263e
adds docker
335fc52
updates seed script (types and extracts countries.js)
ba185f4
makes graphql cors-enabled
e24eacc
better scraper (gets xAxis and series data directly); better typing; …
c12a5d3
removes redwood-hack
9705b3b
adds beforeQuery to CountriesCell to reduce re-renders/queries
2da68f2
Makes default country an environment variable
268e79e
adds colors for some new countries
f06ecc2
plausibly fixes netlify.toml
36c24b1
removes unused cheerio html
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
.DS_Store | ||
.netlify | ||
dev.db* | ||
dist | ||
dist-babel | ||
node_modules | ||
yarn-error.log | ||
|
||
# types files keep changing | ||
.redwood | ||
|
||
.vscode | ||
docker-compose.yml | ||
Dockerfile | ||
api/prisma/dev.db* | ||
.git* |
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 |
---|---|---|
@@ -1,8 +1,11 @@ | ||
.DS_Store | ||
.env | ||
.netlify | ||
dev.db | ||
dev.db* | ||
dist | ||
dist-babel | ||
node_modules | ||
yarn-error.log | ||
|
||
# types files keep changing | ||
.redwood |
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,25 @@ | ||
FROM node:14.16-alpine3.13 | ||
|
||
WORKDIR /app | ||
|
||
# needed by api to scrape | ||
RUN apk add --no-cache curl | ||
|
||
# copy package files | ||
COPY web/package.json ./web/ | ||
COPY api/package.json ./api/ | ||
COPY package.json \ | ||
yarn.lock \ | ||
./ | ||
|
||
# install all dependencies in all workspaces | ||
RUN yarn --no-progress --non-interactive --frozen-lockfile | ||
|
||
# copy everything | ||
COPY . . | ||
|
||
# overwrite redwood.toml | ||
RUN cp docker-redwood.toml redwood.toml | ||
|
||
# change db to sqlite | ||
RUN sed -i -e 's/mysql/sqlite/g' /app/api/prisma/schema.prisma |
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
84 changes: 0 additions & 84 deletions
84
...migrations/20200314004759-set-up-day--country--and-daily-count-models/README.md
This file was deleted.
Oops, something went wrong.
35 changes: 0 additions & 35 deletions
35
...risma/migrations/20200314004759-set-up-day--country--and-daily-count-models/schema.prisma
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
closes #6