Skip to content
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

v1 #5

Merged
merged 171 commits into from
Jan 29, 2025
Merged

v1 #5

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
171 commits
Select commit Hold shift + click to select a range
43d1dfa
added landing page and bolierplate docs
codingshot Jan 8, 2025
cdb2aed
drizzle migrate
elliotBraem Jan 13, 2025
58cadf4
clean up
elliotBraem Jan 14, 2025
7acbce5
Merge pull request #2 from PotLock/feat/orm
elliotBraem Jan 14, 2025
bd85b4d
fmt
elliotBraem Jan 14, 2025
8f034ec
Merge pull request #3 from PotLock/fix/format
elliotBraem Jan 14, 2025
76900f2
refactor to config
elliotBraem Jan 14, 2025
223a56e
rename exports to distribution
elliotBraem Jan 14, 2025
f21301d
add gpt transform
elliotBraem Jan 14, 2025
fd7e9e7
changed some readme stuff
codingshot Jan 14, 2025
8675f65
Merge branch 'main' of https://github.com/PotLock/curatedotfun
codingshot Jan 14, 2025
0ee5c15
taking out yarn lock hopefully helps with deployment issues
codingshot Jan 14, 2025
6a8c0a3
trying to fix the deployment issue ffor landing page
codingshot Jan 14, 2025
108286f
trying to fix vercel deployment error for landing apge
codingshot Jan 14, 2025
2a3cc96
queue wip
elliotBraem Jan 14, 2025
4caa8c6
queue of items
elliotBraem Jan 14, 2025
58776c4
adds test
elliotBraem Jan 14, 2025
e6cc032
modifications to json
elliotBraem Jan 14, 2025
6e05fc0
Merge pull request #4 from PotLock/feat/config
elliotBraem Jan 14, 2025
7758610
Merge pull request #5 from PotLock/feat/queue
elliotBraem Jan 14, 2025
28c2b9f
update docs
elliotBraem Jan 14, 2025
e1cf914
Merge pull request #6 from PotLock/feat/docs
elliotBraem Jan 14, 2025
3d4a179
use curate.press
elliotBraem Jan 14, 2025
d44b216
Merge pull request #7 from PotLock/fix/links
elliotBraem Jan 14, 2025
097bc06
fmt
elliotBraem Jan 14, 2025
0174d41
Merge pull request #8 from PotLock/fix/fmt
elliotBraem Jan 14, 2025
000089d
had to adjust and add bun to package.json on landing and delist landi…
codingshot Jan 15, 2025
1e0d831
change favicons and. might have broke somethign with docs. Add metaba…
codingshot Jan 15, 2025
19605e5
fixed emoji animation
codingshot Jan 15, 2025
35e93c4
i think this will upgrade landing page but good for now
codingshot Jan 15, 2025
a4393a1
did some formatting on page to make look nicer
codingshot Jan 15, 2025
e57b612
convert frontend to use rsbuild
elliotBraem Jan 15, 2025
5a2a0df
fly wip
elliotBraem Jan 15, 2025
34d2e05
load config
elliotBraem Jan 16, 2025
4788b26
twitter db
elliotBraem Jan 16, 2025
96ca924
move rss feed to sqlite
elliotBraem Jan 16, 2025
d111133
move rss to sqlite
elliotBraem Jan 16, 2025
d4d7a4d
update db
elliotBraem Jan 16, 2025
f119404
wip refactor frontend
elliotBraem Jan 16, 2025
60998ff
add approvers and plugins
elliotBraem Jan 16, 2025
86779c2
feed items
elliotBraem Jan 16, 2025
3409d64
better dashboard
elliotBraem Jan 16, 2025
849d455
style changes
elliotBraem Jan 16, 2025
86e99fc
adds vercel
elliotBraem Jan 16, 2025
79e75f5
fmt
elliotBraem Jan 16, 2025
7f6bcf0
Merge pull request #9 from PotLock/feat/frontend
elliotBraem Jan 16, 2025
56e0ec8
fix dependency
elliotBraem Jan 16, 2025
09842ae
disable
elliotBraem Jan 16, 2025
5f6d5e8
fix icon
elliotBraem Jan 16, 2025
b78df2e
working
elliotBraem Jan 16, 2025
26c17ff
needed to psuh changes locally, may break docs
codingshot Jan 16, 2025
4b1bf29
Merge branch 'main' of https://github.com/PotLock/curatedotfun
codingshot Jan 16, 2025
f04f28c
changed icons to footer, made cta but i lowkey just broke the fronten…
codingshot Jan 16, 2025
529b98a
Merge pull request #13 from PotLock/shot-frontend
codingshot Jan 16, 2025
7e80610
fmt
elliotBraem Jan 16, 2025
aff8192
near protocol rewards
elliotBraem Jan 16, 2025
acbe148
Merge pull request #10 from PotLock/feat/successful-deploy
elliotBraem Jan 16, 2025
592c103
vercel json
elliotBraem Jan 16, 2025
7ed6f83
fix serving routes
elliotBraem Jan 16, 2025
90193f3
do rewrites
elliotBraem Jan 16, 2025
964da3f
Merge pull request #14 from PotLock/fix/redirects
elliotBraem Jan 16, 2025
dbf054c
configure ws service
elliotBraem Jan 16, 2025
009c84d
Merge pull request #15 from PotLock/feat/security
elliotBraem Jan 16, 2025
86e3ce5
mobile layout
elliotBraem Jan 16, 2025
bc268f8
mobile responsive
elliotBraem Jan 16, 2025
bcded36
fmt
elliotBraem Jan 16, 2025
06bd93c
Merge pull request #16 from PotLock/feat/layout
elliotBraem Jan 16, 2025
7604231
remove web socket
elliotBraem Jan 16, 2025
2ddc156
add curator username
elliotBraem Jan 16, 2025
9d573c1
curators notes
elliotBraem Jan 16, 2025
23cb96c
modal
elliotBraem Jan 16, 2025
1dc2149
helpful text
elliotBraem Jan 16, 2025
121dab6
fmt
elliotBraem Jan 16, 2025
03c7f34
retry twitter 3 times
elliotBraem Jan 16, 2025
7b427f2
Merge pull request #17 from PotLock/feat/curators
elliotBraem Jan 16, 2025
7b15654
update to curate dot fun
elliotBraem Jan 16, 2025
f7cc2b5
add default value and migration
elliotBraem Jan 16, 2025
e46830c
fmt
elliotBraem Jan 16, 2025
9ae917c
endpoint to clear cookies
elliotBraem Jan 17, 2025
7530290
temp
elliotBraem Jan 17, 2025
4c33b23
temp
elliotBraem Jan 17, 2025
238c8a4
set null
elliotBraem Jan 17, 2025
892e821
update login
elliotBraem Jan 17, 2025
71838f8
added app as cta on navbar
codingshot Jan 17, 2025
30dc54c
Merge pull request #18 from PotLock/shot-frontend
codingshot Jan 17, 2025
4f41306
remove overprotection
elliotBraem Jan 17, 2025
ec48d0b
Update curate.config.json added real twitter accounts
codingshot Jan 17, 2025
e21069a
added berachain, morph, eigen, daos feed, fixed owoki handle
codingshot Jan 17, 2025
ee95011
min 1 machine
elliotBraem Jan 17, 2025
4a492c7
clean
elliotBraem Jan 17, 2025
9b256a7
twitter
elliotBraem Jan 17, 2025
7403275
min running and lax
elliotBraem Jan 17, 2025
33621a3
min one machine
elliotBraem Jan 17, 2025
9dfc75f
no min
elliotBraem Jan 17, 2025
0825d13
suspend
elliotBraem Jan 17, 2025
5a8bb04
lax
elliotBraem Jan 17, 2025
129d2b0
denver
elliotBraem Jan 17, 2025
f57635f
no @ in intent
elliotBraem Jan 17, 2025
839f4cc
link out to tmoderation tweet
elliotBraem Jan 17, 2025
49f45b5
get curator tweets details
elliotBraem Jan 17, 2025
51abcbe
correct usernames in notes, use ! for approve and reject
elliotBraem Jan 17, 2025
2893b5c
hide log
elliotBraem Jan 17, 2025
311cdca
mobile responsive
elliotBraem Jan 17, 2025
eae9dd8
padding
elliotBraem Jan 17, 2025
8f1f6ce
padding
elliotBraem Jan 17, 2025
e3c2d46
timestamp
elliotBraem Jan 17, 2025
a465405
clean up
elliotBraem Jan 17, 2025
e3468eb
fmt
elliotBraem Jan 17, 2025
bc06761
Merge pull request #21 from PotLock/feat/misc
elliotBraem Jan 17, 2025
980fbbd
no replys
elliotBraem Jan 17, 2025
8de328f
Merge pull request #22 from PotLock/feat/no-replys
elliotBraem Jan 17, 2025
570b338
modfiy submission flow to have no replies
elliotBraem Jan 18, 2025
1f6f6ba
fmt
elliotBraem Jan 18, 2025
e812ca1
Merge pull request #23 from PotLock/feat/no-replys
elliotBraem Jan 18, 2025
e7de0a5
add up
elliotBraem Jan 18, 2025
5120a85
fix proxy
elliotBraem Jan 18, 2025
4806d02
fmt
elliotBraem Jan 18, 2025
d282fb0
fix ports
elliotBraem Jan 18, 2025
1180631
health checks
elliotBraem Jan 18, 2025
14716bc
3000 port health check
elliotBraem Jan 18, 2025
1f61405
services fly
elliotBraem Jan 18, 2025
6f70591
db migration and perf improvemnet
elliotBraem Jan 18, 2025
f45f239
80 and 443
elliotBraem Jan 18, 2025
7e682fa
health check
elliotBraem Jan 18, 2025
ffbf318
remove migr
elliotBraem Jan 18, 2025
90d40c5
1 min
elliotBraem Jan 18, 2025
de6f803
fix/deploy
elliotBraem Jan 19, 2025
17530ee
comments
elliotBraem Jan 19, 2025
c374266
move twitter badge
elliotBraem Jan 19, 2025
90cfc8e
fix internal port
elliotBraem Jan 19, 2025
e353f7b
fix moderation link
elliotBraem Jan 19, 2025
46b5abb
clean up feed item
elliotBraem Jan 19, 2025
a58d5e6
fix rewrite
elliotBraem Jan 19, 2025
d9fd832
ignore self
elliotBraem Jan 19, 2025
5b3f59e
fmt
elliotBraem Jan 19, 2025
f88d7af
Merge pull request #24 from PotLock/fix/deploy
elliotBraem Jan 19, 2025
792ad16
add clear cookies
elliotBraem Jan 20, 2025
d6b409c
get and set cookies
elliotBraem Jan 20, 2025
553f1a7
last twitter id
elliotBraem Jan 20, 2025
510355b
adds twitter tests
elliotBraem Jan 20, 2025
4b94548
fix mentions
elliotBraem Jan 21, 2025
64efb87
handle acknowledgement
elliotBraem Jan 21, 2025
4d55e70
apply and leave feedback
elliotBraem Jan 21, 2025
3b6f277
adds blacklist
elliotBraem Jan 21, 2025
e84c2d3
Merge pull request #25 from PotLock/fix/deploy
elliotBraem Jan 21, 2025
d56dc3b
remove clear cookies
elliotBraem Jan 21, 2025
e7452cd
fmt
elliotBraem Jan 21, 2025
053cd9d
fix
elliotBraem Jan 21, 2025
9eeaf0a
Merge pull request #26 from PotLock/fix/clean-up
elliotBraem Jan 21, 2025
87571c0
fix casing
elliotBraem Jan 21, 2025
25c86ca
use raw config
elliotBraem Jan 21, 2025
da8cc37
fix bot username
elliotBraem Jan 21, 2025
575a8d0
fmt
elliotBraem Jan 21, 2025
ec43161
reverse
elliotBraem Jan 21, 2025
6ba997c
fmt
elliotBraem Jan 21, 2025
b7aa6bc
docs
elliotBraem Jan 21, 2025
e7af08d
update version
elliotBraem Jan 21, 2025
d733816
Update curate.config.json to add nouns with approvers
codingshot Jan 21, 2025
2d073e1
no replies
elliotBraem Jan 21, 2025
7febe12
fix: ignore self and correct blacklist
elliotBraem Jan 21, 2025
a579a1a
Update curate.config.json
elliotBraem Jan 21, 2025
6b4e882
fmt
elliotBraem Jan 22, 2025
776adaf
added usa feed
codingshot Jan 23, 2025
df720db
adds logging, tests, and new feeds
elliotBraem Jan 23, 2025
9cbfbf2
fmt
elliotBraem Jan 23, 2025
0436e7c
Update curate.config.json to add bitcoin reviewers
codingshot Jan 24, 2025
6b8be79
adding chain abstraction feed
codingshot Jan 26, 2025
525042a
added stellar feed
codingshot Jan 28, 2025
9987720
fmt
elliotBraem Jan 28, 2025
b90b096
fmt, increase limit
elliotBraem Jan 28, 2025
b51fc59
add download button
elliotBraem Jan 28, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,8 @@ frontend/**/*.sw?
# flyctl launch added from node_modules/tailwindcss/stubs/.gitignore
!node_modules/tailwindcss/stubs/**/*
fly.toml

# workspace
landing-page
docs
.github
28 changes: 28 additions & 0 deletions .github/near-rewards.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: NEAR Protocol Rewards Tracking
on:
schedule:
- cron: '0 */12 * * *' # Every 12 hours
workflow_dispatch: # Manual trigger
push:
branches: [ main ] # Start on main branch updates

jobs:
calculate-rewards:
runs-on: ubuntu-latest
permissions:
contents: read
issues: read
pull-requests: read
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18'

- name: Calculate Rewards
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPO: ${{ github.repository }}
run: |
npm install -g near-protocol-rewards@latest
near-protocol-rewards calculate
18 changes: 18 additions & 0 deletions .github/workflows/fly-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# See https://fly.io/docs/app-guides/continuous-deployment-with-github-actions/

name: Fly Deploy
on:
push:
branches:
- main
jobs:
deploy:
name: Deploy app
runs-on: ubuntu-latest
concurrency: deploy-group # optional: ensure only one action runs at a time
steps:
- uses: actions/checkout@v4
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
**/node_modules
/.pnp
.pnp.js
.yarn/install-state.gz
Expand Down Expand Up @@ -45,3 +45,7 @@ next-env.d.ts
.cache
.db
.turbo
landing-page/yarn.lock
package-lock.json
landing-page/bun.lockb
bun.lockb
6 changes: 6 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
build
coverage
node_modules
.turbo
.next
.docusaurus
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Please follow the existing code style and conventions used in the project.

## Testing

This repository uses playwright tests, which can be found in [/playwright-tests](./playwright-tests/). Ensure that your changes include appropriate tests and that existing tests pass.
This repository uses tests located in the backend's `src/__tests__` directory. Ensure that your changes include appropriate tests and that existing tests pass.

## Submitting Issues

Expand Down
81 changes: 53 additions & 28 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,52 +1,77 @@
FROM oven/bun as deps
## NOTE
# This Dockerfile builds the frontend and backend separately,
# frontend uses npm and backend requires bun.
# This separation is a temporary solution for a Bun issue with rsbuild,
# see: https://github.com/oven-sh/bun/issues/11628

# Frontend deps & build stage
FROM node:20 as frontend-builder
WORKDIR /app

# Copy package files for all workspaces
COPY package.json bun.lockb turbo.json ./
# Copy frontend package files
COPY frontend/package.json ./frontend/
COPY backend/package.json ./backend/

# Install dependencies
RUN bun install
# Install frontend dependencies
RUN cd frontend && npm install

# Copy frontend source code
COPY frontend ./frontend

# Build frontend
RUN cd frontend && npm run build

# Build stage
FROM oven/bun as builder
# Backend deps & build stage
FROM oven/bun as backend-builder
WORKDIR /app

# Set NODE_ENV for build process
ENV NODE_ENV="production"
# Copy backend package files
COPY package.json ./
COPY backend/package.json ./backend/
COPY backend/drizzle.config.ts ./backend/

# Copy all files from deps stage including node_modules
COPY --from=deps /app ./
# Install backend dependencies
RUN cd backend && bun install

# Copy source code
COPY . .
# Copy backend source code
COPY backend ./backend

# Build both frontend and backend
RUN bun run build
# Build backend
RUN cd backend && bun run build

# Production stage
FROM oven/bun as production
WORKDIR /app

# Create directory for mount with correct permissions
RUN mkdir -p /.data/db /.data/cache && \
chown -R bun:bun /.data
# Install LiteFS dependencies
RUN apt-get update -y && apt-get install -y ca-certificates fuse3 sqlite3

# Copy only necessary files from builder
COPY --from=builder --chown=bun:bun /app/package.json /app/bun.lockb /app/turbo.json ./
COPY --from=builder --chown=bun:bun /app/node_modules ./node_modules
COPY --from=builder --chown=bun:bun /app/frontend/dist ./frontend/dist
COPY --from=builder --chown=bun:bun /app/backend/dist ./backend/dist
# Copy LiteFS binary
COPY --from=flyio/litefs:0.5 /usr/local/bin/litefs /usr/local/bin/litefs

# Create directories for mounts with correct permissions
RUN mkdir -p /litefs /var/lib/litefs && \
chown -R bun:bun /litefs /var/lib/litefs

# Create volume mount points
# Copy only necessary files from builders
COPY --from=backend-builder --chown=bun:bun /app/package.json ./
COPY --chown=bun:bun curate.config.json ./

COPY --from=frontend-builder --chown=bun:bun /app/frontend/dist ./frontend/dist
COPY --from=backend-builder --chown=bun:bun /app/backend ./backend

RUN cd backend && bun install

# Set environment variables
ENV DATABASE_URL="file:/.data/db/sqlite.db"
ENV CACHE_DIR="/.data/cache"
ENV DATABASE_URL="file:/litefs/db"
ENV NODE_ENV="production"
ENV FRONTEND_DIST_PATH="/app/frontend/dist"

# Expose the port
EXPOSE 3000

# Start the application using the production start script
CMD ["bun", "run", "start"]
# Copy LiteFS configuration
COPY --chown=bun:bun litefs.yml /etc/litefs.yml

# Start LiteFS (runs app with distributed file system for SQLite)
ENTRYPOINT ["litefs", "mount"]
Loading