Skip to content

Commit

Permalink
feat: create dapps table (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
pradel authored Jul 12, 2024
1 parent 8c40131 commit e391e45
Show file tree
Hide file tree
Showing 16 changed files with 1,327 additions and 121 deletions.
5 changes: 5 additions & 0 deletions .changeset/itchy-dolphins-hide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"stackspulse": patch
---

Create new dapps table to improve the queries.
2 changes: 1 addition & 1 deletion .github/workflows/cron-weekly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
cron:
runs-on: ubuntu-latest
steps:
- name: hourly-cron-job
- name: weekly-cron-job
run: |
curl --request GET \
--url 'https://www.stackspulse.com/api/cron/weekly-users' \
Expand Down
14 changes: 14 additions & 0 deletions ansible/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,20 @@ To attach to the tmux session run:
tmux attach -t seed-chainstate
```

## Database management

To sync the prisma migrations with the db run:

```bash
pnpm dotenvx run --env-file=.env.production.local --env-file=.env.production -- pnpm prisma migrate diff --from-empty --to-schema-datamodel prisma/schema.prisma --script > prisma/migrations/0_init/migration.sql
```

To mark the first migration as applied (will not be executed) run:

```bash
pnpm dotenvx run --env-file=.env.production.local --env-file=.env.production -- prisma migrate resolve --applied 0_init
```

## Credits

Config adapted from https://github.com/guillaumebriday/kamal-ansible-manager.
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "stackspulse",
"version": "0.5.1",
"private": true,
"packageManager": "pnpm@9.3.0",
"packageManager": "pnpm@9.5.0",
"scripts": {
"dev": "next dev",
"build": "next build",
Expand All @@ -24,15 +24,15 @@
"@libsql/client": "0.4.3",
"@radix-ui/themes": "3.0.5",
"@sentry/nextjs": "8.17.0",
"@stacks/transactions": "6.15.0",
"@stacks/transactions": "6.16.1",
"@t3-oss/env-core": "0.10.1",
"@t3-oss/env-nextjs": "0.10.1",
"@tabler/icons-react": "3.6.0",
"@tanstack/react-query": "5.50.1",
"@tabler/icons-react": "3.10.0",
"@tanstack/react-query": "5.51.1",
"class-variance-authority": "0.7.0",
"clsx": "2.1.1",
"date-fns": "3.6.0",
"drizzle-orm": "0.31.2",
"drizzle-orm": "0.32.0",
"fathom-client": "3.7.2",
"husky": "9.0.11",
"javascript-time-ago": "2.5.10",
Expand All @@ -42,7 +42,7 @@
"react-dom": "18.3.1",
"recharts": "2.13.0-alpha.4",
"sharp": "0.33.4",
"tailwind-merge": "2.3.0",
"tailwind-merge": "2.4.0",
"tailwindcss-animate": "1.0.7",
"twitter-api-v2": "1.17.1",
"unstorage": "1.10.2",
Expand All @@ -51,12 +51,12 @@
"devDependencies": {
"@biomejs/biome": "1.8.3",
"@changesets/cli": "2.27.7",
"@flydotio/dockerfile": "0.5.7",
"@types/node": "20.14.9",
"@flydotio/dockerfile": "0.5.8",
"@types/node": "20.14.10",
"@types/react": "18.3.3",
"@types/react-dom": "18.3.0",
"autoprefixer": "10.4.19",
"drizzle-kit": "0.22.7",
"drizzle-kit": "0.23.0",
"eslint": "8.57.0",
"eslint-config-next": "14.2.5",
"eslint-plugin-tailwindcss": "3.17.4",
Expand Down
Loading

0 comments on commit e391e45

Please sign in to comment.