Skip to content

Commit

Permalink
remove rest
Browse files Browse the repository at this point in the history
  • Loading branch information
pradel committed Aug 11, 2024
1 parent f3a13f7 commit 752a508
Show file tree
Hide file tree
Showing 18 changed files with 14 additions and 926 deletions.
6 changes: 0 additions & 6 deletions apps/web/.dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,7 @@ yarn-error.log\*
\*.tsbuildinfo
next-env.d.ts

# Local Database

sqlite.db
sqlite.db-\*

# Project files

.vscode
.github
chainhooks
2 changes: 0 additions & 2 deletions apps/web/.env.development
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
NEXT_TELEMETRY_DISABLED=1
CHAINHOOKS_API_TOKEN=dev-api-token
CRON_API_TOKEN=dev-api-token
DATABASE_PATH=file:sqlite.db
TWITTER_API_KEY=dev
TWITTER_API_SECRET_KEY=dev
TWITTER_ACCESS_TOKEN=dev
Expand Down
2 changes: 0 additions & 2 deletions apps/web/.env.production.build
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# file used by the CI to build the app
NEXT_TELEMETRY_DISABLED=1
CHAINHOOKS_API_TOKEN=dev-api-token
CRON_API_TOKEN=dev-api-token
DATABASE_PATH=file:sqlite.db
TWITTER_API_KEY=dev
TWITTER_API_SECRET_KEY=dev
TWITTER_ACCESS_TOKEN=dev
Expand Down
1 change: 0 additions & 1 deletion apps/web/.env.production.local
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
DOTENV_PUBLIC_KEY_PRODUCTION_LOCAL="020b21e579eb9b260c6f4df063b2debf2769d1ca3433ae8ba534dd46bd1cbb7470"

# .env.production.local
CHAINHOOKS_API_TOKEN="encrypted:BGmfSQzJcP+w3WbJXWJ0Huw6VVgho5ZK89cTH3caYHk0RvWEF/mtBZIo++Zj8qQFQXuE3sXNAz4agrOM3q07B5o3lXVzgN89a2We/ld4TnibBMcaG2any9KdcbH+A+MweLPsT1zkB87HzJHFkD02VtX6YGa0k7V0+gVVemJ0HEY0v7C9cqr7ELTmhM4="
CRON_API_TOKEN="encrypted:BPR4r3e5tPVrSvS+8hS2/WdxnDQMwlUbDubVhBeYfvKgRFUN0m5NnENYZBAQXUL76vAmDio86ImtmrGVW//Xl86xWzq6d5RVV2L01Uk88isTyxAxR1/AdJqG81pw7a3f48j6LYuMOVhlSWXqUjEBWbsyTT/BP5v5ZNUBssx+lgd4LbhvsU6PNJrN1QY="
TWITTER_API_KEY="encrypted:BEVE1WbHYhzlbCfIep1pX1eE1NqmNdUnnZEwZpGbNm8PZM+BDyX99kYc0PedyUCOathH6rHoFhhGJBPFu2C+5quU0Q/Wr7FO30DFLhs2VPlEbCQ62n1A7BZ3II9218+YAXeYXWghwW3GjssP52tLmAic2nyH1HPOqbU="
TWITTER_API_SECRET_KEY="encrypted:BAzGfOVwJzzw65UWTcZFqjsD/aOHjW5LGzylH/otgThO3IppV4mXhoSeAPc1ClyUZF/nUfVUppPndhfA7i21pDaiqe8xzdH6q6VxBHhZESIfrrP845bc9m67xDgp2JP2QdVtJ7gCm4chUOXivqQW2wRFsyXYLwKwEUCloX6LUajoKwtBDQjNLBj85Dlxr6Cc2yil"
Expand Down
7 changes: 0 additions & 7 deletions apps/web/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,5 @@ yarn-error.log*
*.tsbuildinfo
next-env.d.ts

# Local Database
sqlite.db
sqlite.db-*

# Chainhooks
chainhooks.production.json

# Sentry Config File
.env.sentry-build-plugin
6 changes: 0 additions & 6 deletions apps/web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ WORKDIR /app/apps/web

# Add fake environment file for build to succeed
COPY ./apps/web/.env.production.build .env.production.local
RUN pnpm db:push

# Build application
RUN pnpm turbo run build --filter=$APP_NAME...
Expand All @@ -59,11 +58,6 @@ COPY --from=installer /app/apps/web/.next/static ./apps/web/.next/static
COPY --from=installer /app/apps/web/public ./apps/web/public
COPY ./apps/web/.env.production.local ./.env.production.local

# Setup sqlite on a separate volume
RUN mkdir -p /data
VOLUME /data
ENV DATABASE_PATH="file:/data/sqlite.db"

# Start the server by default, this can be overwritten at runtime
EXPOSE 3000
CMD dotenvx run -- node apps/web/server.js
10 changes: 0 additions & 10 deletions apps/web/drizzle.config.ts

This file was deleted.

15 changes: 0 additions & 15 deletions apps/web/drizzle/0000_swift_ink.sql

This file was deleted.

101 changes: 0 additions & 101 deletions apps/web/drizzle/meta/0000_snapshot.json

This file was deleted.

13 changes: 0 additions & 13 deletions apps/web/drizzle/meta/_journal.json

This file was deleted.

10 changes: 0 additions & 10 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@
"build": "next build",
"start": "next start",
"lint": "next lint",
"chainhooks:generate": "dotenvx run --env-file=.env.production.local --env-file=.env.production -- node ./scripts/generate-chainhooks.mjs",
"db:generate": "drizzle-kit generate",
"db:push": "drizzle-kit push",
"db:migrate": "node ./scripts/drizzle-migrate.mjs",
"deploy": "fly deploy --remote-only"
},
"dependencies": {
Expand All @@ -28,7 +24,6 @@
"class-variance-authority": "0.7.0",
"clsx": "2.1.1",
"date-fns": "3.6.0",
"drizzle-orm": "0.33.0",
"fathom-client": "3.7.2",
"javascript-time-ago": "2.5.10",
"next": "14.2.5",
Expand All @@ -48,17 +43,12 @@
"@types/react": "18.3.3",
"@types/react-dom": "18.3.0",
"autoprefixer": "10.4.20",
"drizzle-kit": "0.24.0",
"eslint": "8.57.0",
"eslint-config-next": "14.2.5",
"eslint-plugin-tailwindcss": "3.17.4",
"postcss": "8.4.41",
"radix-themes-tw": "0.2.3",
"tailwindcss": "3.4.9",
"typescript": "5.5.4"
},
"dockerfile": {
"alpine": true,
"secrets": ["CHAINHOOKS_API_TOKEN"]
}
}
21 changes: 0 additions & 21 deletions apps/web/scripts/drizzle-migrate.mjs

This file was deleted.

80 changes: 0 additions & 80 deletions apps/web/scripts/generate-chainhooks.mjs

This file was deleted.

27 changes: 0 additions & 27 deletions apps/web/src/db/db.ts

This file was deleted.

Loading

0 comments on commit 752a508

Please sign in to comment.