Skip to content

Commit

Permalink
feat: remove firebase and setup onesignal
Browse files Browse the repository at this point in the history
  • Loading branch information
jeferson-sb committed Nov 25, 2023
1 parent 22024b0 commit bc4467f
Show file tree
Hide file tree
Showing 11 changed files with 3,142 additions and 3,905 deletions.
16 changes: 2 additions & 14 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,6 @@

DATABASE_URL=postgresql://postgres:postgres@localhost:5432/whatconf

# FIREBASE

NEXT_PUBLIC_FIREBASE_APIKEY=
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=
NEXT_PUBLIC_FIREBASE_PROJECTID=
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET=
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDERID=
NEXT_PUBLIC_FIREBASE_APPID=
NEXT_PUBLIC_FIREBASE_MEASUREMENTID=

# FIREBASE / MESSAGING

NEXT_PUBLIC_FIREBASE_VAPIDKEY=

# Next Auth
# You can generate a new secret on the command line with:
# openssl rand -base64 32
Expand All @@ -38,3 +24,5 @@ DISCORD_CLIENT_ID=
DISCORD_CLIENT_SECRET=
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
ONESIGNAL_APP_ID=
ONESIGNAL_SAFARI_ID=
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ cp .env.example .env
Fill the environment variables with **your** credentials. For more info see:

- Check next-auth [social providers documentation](https://next-auth.js.org/providers)
- Check the setup of a new project in [Firebase](https://firebase.google.com/docs/web/setup)
- Check [OneSignal documentation](https://documentation.onesignal.com/docs/react-js-setup)

Start a postgres database or use docker:

Expand Down
60 changes: 30 additions & 30 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,58 +11,58 @@
"db:setup": "npm run db:generate && npm run db:migrate && npm run db:seed",
"lint": "next lint",
"start": "next start",
"test": "vitest"
"test": "vitest",
"check:deps": "npm-check-updates --format group"
},
"prisma": {
"seed": "ts-node --transpile-only prisma/seed.ts"
},
"dependencies": {
"@hookform/resolvers": "^2.9.10",
"@hookform/resolvers": "^2.9.11",
"@next-auth/prisma-adapter": "^1.0.7",
"@prisma/client": "^4.5.0",
"@radix-ui/react-alert-dialog": "^1.0.4",
"@radix-ui/react-toast": "^1.1.4",
"@tanstack/react-query": "^4.35.3",
"@trpc/client": "10.38.4",
"@trpc/next": "10.38.4",
"@trpc/react-query": "10.38.4",
"@trpc/server": "10.38.4",
"clsx": "^1.2.1",
"@prisma/client": "^4.16.2",
"@radix-ui/react-alert-dialog": "^1.0.5",
"@radix-ui/react-toast": "^1.1.5",
"@tanstack/react-query": "^4.36.1",
"@trpc/client": "10.44.1",
"@trpc/next": "10.44.1",
"@trpc/react-query": "10.44.1",
"@trpc/server": "10.44.1",
"clsx": "^2.0.0",
"dayjs": "^1.11.10",
"firebase": "^9.23.0",
"firebase-admin": "^11.9.0",
"next": "13.5.2",
"next-auth": "^4.23.1",
"open-props": "^1.5.16",
"next-auth": "^4.24.5",
"open-props": "^1.6.13",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-firebase-hooks": "^5.1.1",
"react-hook-form": "^7.46.2",
"react-hook-form": "^7.48.2",
"react-onesignal": "^3.0.1",
"superjson": "1.13.1",
"zod": "^3.22.2"
"zod": "^3.22.4"
},
"devDependencies": {
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^14.5.1",
"@types/node": "^18.0.0",
"@types/react": "^18.2.22",
"@types/react-dom": "^18.2.7",
"@typescript-eslint/eslint-plugin": "^5.60.1",
"@typescript-eslint/parser": "^5.60.1",
"@types/node": "^18.18.13",
"@types/react": "^18.2.38",
"@types/react-dom": "^18.2.17",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"@vitejs/plugin-react": "^2.2.0",
"eslint": "^8.50.0",
"eslint": "^8.54.0",
"eslint-config-next": "13.5.2",
"happy-dom": "^7.7.0",
"prettier": "^2.8.8",
"prisma": "^4.5.0",
"happy-dom": "^7.8.1",
"npm-check-updates": "^16.14.11",
"prettier": "^3.1.0",
"prisma": "^4.16.2",
"ts-node": "^10.9.1",
"typescript": "^4.8.4",
"vitest": "^0.25.2"
"typescript": "^5.0.0",
"vitest": "^0.25.8"
},
"ct3aMetadata": {
"initVersion": "6.8.1"
},
"engines": {
"node": "^16.17.0 || ^18.0.0"
"node": "^18.0.0"
}
}
Loading

0 comments on commit bc4467f

Please sign in to comment.