-
-
Notifications
You must be signed in to change notification settings - Fork 13
Feature/migrate to deno #410
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
Open
j4qfrost
wants to merge
103
commits into
openpredictionmarkets:main
Choose a base branch
from
j4qfrost:feature/migrate_to_deno
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 all commits
Commits
Show all changes
103 commits
Select commit
Hold shift + click to select a range
b6d0f3d
add test for HandleHTTPError
j4qfrost d123995
more verbose http codes
j4qfrost d56d930
Update Dockerfile
astrosnat 47cb345
Update compose_dev.sh
astrosnat 18e7b49
add failure condition test
j4qfrost c7690d1
Merge branch 'upstream/main'
j4qfrost de31424
Merge remote-tracking branch 'upstream/golang123'
j4qfrost 3646abe
formatting and test standards
j4qfrost 0a7fcf0
Merge branch 'main' of github.com:openpredictionmarkets/socialpredict
j4qfrost df26051
Merge branch 'main' of github.com:openpredictionmarkets/socialpredict
j4qfrost 6cbb97c
add frontend file polling for wsl2
j4qfrost 8f86e23
Merge branch 'main' of github.com:openpredictionmarkets/socialpredict
j4qfrost 564ad6b
Add test for HandleHTTPError (#278)
j4qfrost 88b4854
add failure condition test (#282)
j4qfrost a2ccc58
Creation of Market Price Projection API (#277)
pwdel a1e039c
Create SECURITY.md
pwdel 17e26a5
Adding Fees to Buying and Selling Bets (#287)
pwdel 327e906
Frontend fixes (#286)
markokovac16 f10fdde
Attempting toa ddress cors related security concern. (#298)
pwdel f1b4d43
Drafting out reporting stats.
pwdel 4cc882e
Add support for dependency injection to setup (#301)
ajlacey 29eaddf
Merge branch 'upstream/main'
j4qfrost 9692361
Merge branch 'main' of github.com:openpredictionmarkets/socialpredict
j4qfrost 61827a6
Merge branch 'main' of github.com:openpredictionmarkets/socialpredict
j4qfrost df4f062
revert
j4qfrost 2da9247
Merge branch 'main' of github.com:openpredictionmarkets/socialpredict
j4qfrost f6fea8b
Fix/remove wsl check (#337)
j4qfrost f74ebd2
Feature/frontend vite build (#341)
j4qfrost 454fa34
feat(ci): Add docker creation workflow
j4qfrost 402bf2d
separate builds
j4qfrost 7becd22
on branch up
j4qfrost 31a03d5
main
j4qfrost 95ecf5b
Merge branch 'feature/ci-container-build-publish'
j4qfrost 4717a79
correct files
j4qfrost 00857a6
remove syntax check
j4qfrost 47896f6
fix metas
j4qfrost 353d97d
meta access
j4qfrost 0af2995
attestation
j4qfrost f3aeba1
separate attestations
j4qfrost c99fbbc
Merge branch 'openpredictionmarkets:main' into main
j4qfrost 51c7a6a
latest tag
j4qfrost 813e8c3
Merge branch 'main' of github.com:j4qfrost/socialpredict
j4qfrost 7f822b1
tag change
j4qfrost 4bd777c
caching
j4qfrost 8ec1d21
buildx and tagging
j4qfrost 1c37224
retag and test cache
j4qfrost d310deb
tagging
j4qfrost 307a83d
automate on tags
j4qfrost 87a41ef
added back for security
j4qfrost ae069c7
Merge branch 'main' of github.com:openpredictionmarkets/socialpredict
j4qfrost 686fcc9
feat(ci): Deploy workflow to staging
j4qfrost 13c172c
up version
j4qfrost c308efb
fingerprint check
j4qfrost 0870969
fingerprint remove
j4qfrost cb37945
fingerprint
j4qfrost cee47be
fingerprint
j4qfrost 30ca530
version
j4qfrost 544df4f
compose cmd
j4qfrost 42e3a31
input file
j4qfrost d65dff4
go to source
j4qfrost 0e28e3e
other dir
j4qfrost 188b15f
other dir
j4qfrost b8a3451
other dir
j4qfrost d08981e
var names
j4qfrost 1e16f7f
check
j4qfrost fd1a287
env file
j4qfrost bc03d33
env file
j4qfrost 43722d5
env file
j4qfrost 33dfec4
Merge branch 'main' into feature/ci_deploy_digital_ocean
j4qfrost 31dea91
args
j4qfrost 29d0c8d
Merge branch 'main' into feature/ci_deploy_digital_ocean
j4qfrost e2c3e0a
args
j4qfrost 4e09693
Merge branch 'main' into feature/ci_deploy_digital_ocean
j4qfrost fe2aed9
args
j4qfrost 06408f4
args
j4qfrost 630d6dd
args
j4qfrost 573ead7
args
j4qfrost 8369107
check
j4qfrost b054a97
backend
j4qfrost 575398f
backend
j4qfrost ffc284b
docker login
j4qfrost 82a1481
args
j4qfrost cf543b4
Merge branch 'main' of github.com:openpredictionmarkets/socialpredict
j4qfrost ffe7f11
fix(ci): Staging workflow not setting domain correctly
j4qfrost 6c3a50d
refactor(nginx): Whitelist paths
j4qfrost 4043fec
Merge branch 'fix/staging-workflow-domain'
j4qfrost 0443459
Bump the npm_and_yarn group across 1 directory with 4 updates
dependabot[bot] 6519785
Merge branch 'main' into fix/npm_yarn_updates
astrosnat 77f8370
Merge branch 'main' into fix/npm_yarn_updates
j4qfrost 9b89ab2
modify for deno
j4qfrost 687f86c
Merge pull request #2 from j4qfrost/feature/migrate_to_deno
j4qfrost 08e49d1
allow forks to deploy
j4qfrost 23c949a
allow forks to deploy (#3)
j4qfrost c84b7ca
fix up CI and nginx conf on deploy machine
j4qfrost 9abb28c
Merge branch 'main' of github.com:openpredictionmarkets/socialpredict…
j4qfrost 30ed1d0
whoops
j4qfrost d8695b7
Merge branch 'main' of github.com:openpredictionmarkets/socialpredict…
j4qfrost 1c3ee23
update lock
j4qfrost 939ab4a
Update Dockerfile
j4qfrost 3a3bc5e
correct dev dockerfile
j4qfrost e153699
easier to use
j4qfrost 79843d6
udpate react-charts
j4qfrost 20f7588
Merge branch 'main' into feature/migrate_to_deno
j4qfrost 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
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 |
---|---|---|
|
@@ -11,12 +11,23 @@ server { | |
} | ||
} | ||
|
||
proxy_cache_path /data/nginx/cache keys_zone=cache_zone:10m; | ||
map $request_method $purge_method { | ||
PURGE 1; | ||
default 0; | ||
} | ||
|
||
server { | ||
gzip on; | ||
gzip_min_length 1000; | ||
gunzip on; | ||
gunzip on; | ||
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript; | ||
listen 443 quic reuseport; | ||
listen 443 ssl; | ||
ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; | ||
http2 on; | ||
http3 on; | ||
http3_hq on; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Some browser optimizations, need to recompile a custom version of nginx to leverage caching. |
||
server_name ${DOMAIN}; | ||
|
||
ssl_certificate /etc/letsencrypt/live/${DOMAIN}/fullchain.pem; | ||
|
@@ -25,11 +36,8 @@ server { | |
include /etc/letsencrypt/options-ssl-nginx.conf; | ||
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; | ||
|
||
location /api/ { | ||
proxy_pass http://backend:8080/; | ||
} | ||
|
||
location / { | ||
proxy_pass http://frontend:80; | ||
add_header Alt-Svc 'h3=":$server_port"; ma=86400'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Needed for http3 |
||
} | ||
} |
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,11 +1,11 @@ | ||
# syntax=docker/dockerfile:1.3-labs | ||
FROM node:22.4.0 | ||
FROM denoland/deno:debian | ||
|
||
WORKDIR /app | ||
|
||
COPY package.json package-lock.json ./ | ||
RUN npm install | ||
COPY package.json deno.lock ./ | ||
RUN deno i | ||
COPY . . | ||
|
||
EXPOSE 5173 | ||
CMD ["npm", "run", "start"] | ||
CMD ["deno", "run", "start"] |
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
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.
Need to figure this out.
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.
This was messing me up when testing.