Skip to content

Commit

Permalink
initialised monorepo with auth and extension communication
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhravya committed Feb 21, 2024
0 parents commit cdceb1b
Show file tree
Hide file tree
Showing 135 changed files with 1,955 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/** @type {import("eslint").Linter.Config} */
const config = {
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint"],
extends: [
"next/core-web-vitals",
"plugin:@typescript-eslint/recommended-type-checked",
"plugin:@typescript-eslint/stylistic-type-checked",
],
rules: {
// These opinionated rules are enabled in stylistic-type-checked above.
// Feel free to reconfigure them to your own preference.
"@typescript-eslint/array-type": "off",
"@typescript-eslint/consistent-type-definitions": "off",

"@typescript-eslint/consistent-type-imports": [
"warn",
{
prefer: "type-imports",
fixStyle: "inline-type-imports",
},
],
"@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_" }],
"@typescript-eslint/require-await": "off",
"@typescript-eslint/no-misused-promises": [
"error",
{
checksVoidReturn: { attributes: false },
},
],
},
};

module.exports = config;
44 changes: 44 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
.turbo
*.sqlite
bun.lockb

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# database
/prisma/db.sqlite
/prisma/db.sqlite-journal

# next.js
/.next/
/out/
next-env.d.ts

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# local env files
# do not commit any .env files to git, except for the .env.example file. https://create.t3.gg/en/usage/env-variables#using-environment-variables
.env
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Create T3 App

This is a [T3 Stack](https://create.t3.gg/) project bootstrapped with `create-t3-app`.

## What's next? How do I make an app with this?

We try to keep this project as simple as possible, so you can start with just the scaffolding we set up for you, and add additional things later when they become necessary.

If you are not familiar with the different technologies used in this project, please refer to the respective docs. If you still are in the wind, please join our [Discord](https://t3.gg/discord) and ask for help.

- [Next.js](https://nextjs.org)
- [NextAuth.js](https://next-auth.js.org)
- [Prisma](https://prisma.io)
- [Tailwind CSS](https://tailwindcss.com)
- [tRPC](https://trpc.io)

## Learn More

To learn more about the [T3 Stack](https://create.t3.gg/), take a look at the following resources:

- [Documentation](https://create.t3.gg/)
- [Learn the T3 Stack](https://create.t3.gg/en/faq#what-learning-resources-are-currently-available) — Check out these awesome tutorials

You can check out the [create-t3-app GitHub repository](https://github.com/t3-oss/create-t3-app) — your feedback and contributions are welcome!

## How do I deploy this?

Follow our deployment guides for [Vercel](https://create.t3.gg/en/deployment/vercel), [Netlify](https://create.t3.gg/en/deployment/netlify) and [Docker](https://create.t3.gg/en/deployment/docker) for more information.
23 changes: 23 additions & 0 deletions apps/web/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Since the ".env" file is gitignored, you can use the ".env.example" file to
# build a new ".env" file when you clone the repo. Keep this file up-to-date
# when you add new variables to `.env`.

# This file will be committed to version control, so make sure not to have any
# secrets in it. If you are cloning this repo, create a copy of this file named
# ".env" and populate it with your secrets.

# When adding additional environment variables, the schema in "/src/env.js"
# should be updated accordingly.

# Drizzle
DATABASE_URL="db.sqlite"

# Next Auth
# You can generate a new secret on the command line with:
# openssl rand -base64 32
# https://next-auth.js.org/configuration/options#secret
# NEXTAUTH_SECRET=""
NEXTAUTH_URL="http:https://localhost:3000"

GOOGLE_CLIENT_ID=""
GOOGLE_CLIENT_SECRET=""
1 change: 1 addition & 0 deletions apps/web/.next/BUILD_ID
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
NZ5J5THZSIm48Kb9Sw_O9
33 changes: 33 additions & 0 deletions apps/web/.next/app-build-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"pages": {
"/_not-found": [
"static/chunks/webpack-7c56eb6342069862.js",
"static/chunks/1dd3208c-2005e60b0a14e8cf.js",
"static/chunks/997-22e52d7003e9633c.js",
"static/chunks/main-app-6394067cfc5308ad.js",
"static/chunks/app/_not-found-2c355b04f2805185.js"
],
"/layout": [
"static/chunks/webpack-7c56eb6342069862.js",
"static/chunks/1dd3208c-2005e60b0a14e8cf.js",
"static/chunks/997-22e52d7003e9633c.js",
"static/chunks/main-app-6394067cfc5308ad.js",
"static/css/6c15d7e3526590b3.css",
"static/chunks/app/layout-d03d6a3648fc999a.js"
],
"/account/page": [
"static/chunks/webpack-7c56eb6342069862.js",
"static/chunks/1dd3208c-2005e60b0a14e8cf.js",
"static/chunks/997-22e52d7003e9633c.js",
"static/chunks/main-app-6394067cfc5308ad.js",
"static/chunks/app/account/page-0cdf2840d5548012.js"
],
"/page": [
"static/chunks/webpack-7c56eb6342069862.js",
"static/chunks/1dd3208c-2005e60b0a14e8cf.js",
"static/chunks/997-22e52d7003e9633c.js",
"static/chunks/main-app-6394067cfc5308ad.js",
"static/chunks/app/page-4446d9ce009d4a80.js"
]
}
}
1 change: 1 addition & 0 deletions apps/web/.next/app-path-routes-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"/_not-found":"/_not-found","/account/page":"/account","/api/auth/[...nextauth]/route":"/api/auth/[...nextauth]","/api/store/route":"/api/store","/page":"/"}
32 changes: 32 additions & 0 deletions apps/web/.next/build-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"polyfillFiles": [
"static/chunks/polyfills-c67a75d1b6f99dc8.js"
],
"devFiles": [],
"ampDevFiles": [],
"lowPriorityFiles": [
"static/NZ5J5THZSIm48Kb9Sw_O9/_buildManifest.js",
"static/NZ5J5THZSIm48Kb9Sw_O9/_ssgManifest.js"
],
"rootMainFiles": [
"static/chunks/webpack-7c56eb6342069862.js",
"static/chunks/1dd3208c-2005e60b0a14e8cf.js",
"static/chunks/997-22e52d7003e9633c.js",
"static/chunks/main-app-6394067cfc5308ad.js"
],
"pages": {
"/_app": [
"static/chunks/webpack-7c56eb6342069862.js",
"static/chunks/framework-9e68550641db712d.js",
"static/chunks/main-2f8ae24bc202a544.js",
"static/chunks/pages/_app-22ef1381f3010e9c.js"
],
"/_error": [
"static/chunks/webpack-7c56eb6342069862.js",
"static/chunks/framework-9e68550641db712d.js",
"static/chunks/main-2f8ae24bc202a544.js",
"static/chunks/pages/_error-2312f57de16788ac.js"
]
},
"ampFirstPages": []
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions apps/web/.next/export-marker.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version":1,"hasExportPathMap":false,"exportTrailingSlash":false,"isNextImageImported":false}
1 change: 1 addition & 0 deletions apps/web/.next/images-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version":1,"images":{"deviceSizes":[640,750,828,1080,1200,1920,2048,3840],"imageSizes":[16,32,48,64,96,128,256,384],"path":"/_next/image","loader":"default","loaderFile":"","domains":[],"disableStaticImages":false,"minimumCacheTTL":60,"formats":["image/webp"],"dangerouslyAllowSVG":false,"contentSecurityPolicy":"script-src 'none'; frame-src 'none'; sandbox;","contentDispositionType":"inline","remotePatterns":[],"unoptimized":false,"sizes":[640,750,828,1080,1200,1920,2048,3840,16,32,48,64,96,128,256,384]}}
1 change: 1 addition & 0 deletions apps/web/.next/next-minimal-server.js.nft.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version":1,"files":["../../../node_modules/styled-jsx/index.js","../../../node_modules/styled-jsx/style.js","../../../node_modules/next/dist/compiled/next-server/server.runtime.prod.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/amp-context.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/app-router-context.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/entrypoints.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/head-manager-context.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/hooks-client-context.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/html-context.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/image-config-context.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/loadable-context.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/loadable.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/router-context.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/server-inserted-html.js","../../../node_modules/next/dist/server/future/route-modules/app-page/module.compiled.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/amp-context.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/app-router-context.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/entrypoints.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/head-manager-context.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/hooks-client-context.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/html-context.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/image-config-context.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/loadable-context.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/loadable.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/router-context.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/server-inserted-html.js","../../../node_modules/next/dist/server/future/route-modules/pages/module.compiled.js"]}
1 change: 1 addition & 0 deletions apps/web/.next/next-server.js.nft.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version":1,"files":["../../../node_modules/styled-jsx/index.js","../../../node_modules/styled-jsx/style.js","../../../node_modules/next/dist/server/next-server.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/amp-context.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/app-router-context.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/entrypoints.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/head-manager-context.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/hooks-client-context.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/html-context.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/image-config-context.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/loadable-context.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/loadable.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/router-context.js","../../../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/server-inserted-html.js","../../../node_modules/next/dist/server/future/route-modules/app-page/module.compiled.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/amp-context.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/app-router-context.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/entrypoints.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/head-manager-context.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/hooks-client-context.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/html-context.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/image-config-context.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/loadable-context.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/loadable.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/router-context.js","../../../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/server-inserted-html.js","../../../node_modules/next/dist/server/future/route-modules/pages/module.compiled.js"]}
1 change: 1 addition & 0 deletions apps/web/.next/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"type": "commonjs"}
1 change: 1 addition & 0 deletions apps/web/.next/prerender-manifest.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions apps/web/.next/prerender-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version":4,"routes":{"/":{"experimentalBypassFor":[{"type":"header","key":"Next-Action"},{"type":"header","key":"content-type","value":"multipart/form-data"}],"initialRevalidateSeconds":false,"srcRoute":"/","dataRoute":"/index.rsc"}},"dynamicRoutes":{},"notFoundRoutes":[],"preview":{"previewModeId":"601e555451af779f51bebe3d5192c4e1","previewModeSigningKey":"02474f00ee5e962a2ec10afff2ab78eee83bf337b304eb667506d5d8e34e0b30","previewModeEncryptionKey":"988d34a5620d5d97da6581f3ad688547ee9b9b20a92afdc7647b534d272550e1"}}
1 change: 1 addition & 0 deletions apps/web/.next/react-loadable-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions apps/web/.next/required-server-files.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version":1,"config":{"env":{},"webpack":null,"eslint":{"ignoreDuringBuilds":false},"typescript":{"ignoreBuildErrors":false,"tsconfigPath":"tsconfig.json"},"distDir":".next","cleanDistDir":true,"assetPrefix":"","cacheMaxMemorySize":52428800,"configOrigin":"next.config.js","useFileSystemPublicRoutes":true,"generateEtags":true,"pageExtensions":["tsx","ts","jsx","js"],"poweredByHeader":true,"compress":true,"analyticsId":"","images":{"deviceSizes":[640,750,828,1080,1200,1920,2048,3840],"imageSizes":[16,32,48,64,96,128,256,384],"path":"/_next/image","loader":"default","loaderFile":"","domains":[],"disableStaticImages":false,"minimumCacheTTL":60,"formats":["image/webp"],"dangerouslyAllowSVG":false,"contentSecurityPolicy":"script-src 'none'; frame-src 'none'; sandbox;","contentDispositionType":"inline","remotePatterns":[],"unoptimized":false},"devIndicators":{"buildActivity":true,"buildActivityPosition":"bottom-right"},"onDemandEntries":{"maxInactiveAge":60000,"pagesBufferLength":5},"amp":{"canonicalBase":""},"basePath":"","sassOptions":{},"trailingSlash":false,"i18n":null,"productionBrowserSourceMaps":false,"optimizeFonts":true,"excludeDefaultMomentLocales":true,"serverRuntimeConfig":{},"publicRuntimeConfig":{},"reactProductionProfiling":false,"reactStrictMode":null,"httpAgentOptions":{"keepAlive":true},"outputFileTracing":true,"staticPageGenerationTimeout":60,"swcMinify":true,"modularizeImports":{"@mui/icons-material":{"transform":"@mui/icons-material/{{member}}"},"lodash":{"transform":"lodash/{{member}}"},"next/server":{"transform":"next/dist/server/web/exports/{{ kebabCase member }}"}},"experimental":{"serverMinification":true,"serverSourceMaps":false,"caseSensitiveRoutes":false,"useDeploymentId":false,"useDeploymentIdServerActions":false,"clientRouterFilter":true,"clientRouterFilterRedirects":false,"fetchCacheKeyPrefix":"","middlewarePrefetch":"flexible","optimisticClientCache":true,"manualClientBasePath":false,"cpus":9,"memoryBasedWorkersCount":false,"isrFlushToDisk":true,"workerThreads":false,"optimizeCss":false,"nextScriptWorkers":false,"scrollRestoration":false,"externalDir":false,"disableOptimizedLoading":false,"gzipSize":true,"craCompat":false,"esmExternals":true,"fullySpecified":false,"outputFileTracingRoot":"","swcTraceProfiling":false,"forceSwcTransforms":false,"largePageDataBytes":128000,"adjustFontFallbacks":false,"adjustFontFallbacksWithSizeAdjust":false,"typedRoutes":false,"instrumentationHook":false,"bundlePagesExternals":false,"parallelServerCompiles":false,"parallelServerBuildTraces":false,"ppr":false,"missingSuspenseWithCSRBailout":true,"optimizePackageImports":["lucide-react","date-fns","lodash-es","ramda","antd","react-bootstrap","ahooks","@ant-design/icons","@headlessui/react","@headlessui-float/react","@heroicons/react/20/solid","@heroicons/react/24/solid","@heroicons/react/24/outline","@visx/visx","@tremor/react","rxjs","@mui/material","@mui/icons-material","recharts","react-use","@material-ui/core","@material-ui/icons","@tabler/icons-react","mui-core","react-icons/ai","react-icons/bi","react-icons/bs","react-icons/cg","react-icons/ci","react-icons/di","react-icons/fa","react-icons/fa6","react-icons/fc","react-icons/fi","react-icons/gi","react-icons/go","react-icons/gr","react-icons/hi","react-icons/hi2","react-icons/im","react-icons/io","react-icons/io5","react-icons/lia","react-icons/lib","react-icons/lu","react-icons/md","react-icons/pi","react-icons/ri","react-icons/rx","react-icons/si","react-icons/sl","react-icons/tb","react-icons/tfi","react-icons/ti","react-icons/vsc","react-icons/wi"],"trustHostHeader":false,"isExperimentalCompile":false},"configFileName":"next.config.js"},"appDir":"/Users/dhravyashah/Documents/code/anycontext/apps/web","relativeAppDir":"","files":[".next/routes-manifest.json",".next/server/pages-manifest.json",".next/build-manifest.json",".next/prerender-manifest.json",".next/prerender-manifest.js",".next/server/middleware-manifest.json",".next/server/middleware-build-manifest.js",".next/server/middleware-react-loadable-manifest.js",".next/server/app-paths-manifest.json",".next/app-path-routes-manifest.json",".next/app-build-manifest.json",".next/server/server-reference-manifest.js",".next/server/server-reference-manifest.json",".next/react-loadable-manifest.json",".next/server/font-manifest.json",".next/BUILD_ID",".next/server/next-font-manifest.js",".next/server/next-font-manifest.json"],"ignore":["../../node_modules/next/dist/compiled/@ampproject/toolbox-optimizer/**/*"]}
1 change: 1 addition & 0 deletions apps/web/.next/routes-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version":3,"pages404":true,"caseSensitive":false,"basePath":"","redirects":[{"source":"/:path+/","destination":"/:path+","internal":true,"statusCode":308,"regex":"^(?:/((?:[^/]+?)(?:/(?:[^/]+?))*))/$"}],"headers":[],"dynamicRoutes":[{"page":"/api/auth/[...nextauth]","regex":"^/api/auth/(.+?)(?:/)?$","routeKeys":{"nxtPnextauth":"nxtPnextauth"},"namedRegex":"^/api/auth/(?<nxtPnextauth>.+?)(?:/)?$"}],"staticRoutes":[{"page":"/","regex":"^/(?:/)?$","routeKeys":{},"namedRegex":"^/(?:/)?$"},{"page":"/_not-found","regex":"^/_not\\-found(?:/)?$","routeKeys":{},"namedRegex":"^/_not\\-found(?:/)?$"},{"page":"/account","regex":"^/account(?:/)?$","routeKeys":{},"namedRegex":"^/account(?:/)?$"}],"dataRoutes":[],"rsc":{"header":"RSC","varyHeader":"RSC, Next-Router-State-Tree, Next-Router-Prefetch, Next-Url","prefetchHeader":"Next-Router-Prefetch","didPostponeHeader":"x-nextjs-postponed","contentTypeHeader":"text/x-component","suffix":".rsc","prefetchSuffix":".prefetch.rsc"},"rewrites":[]}
7 changes: 7 additions & 0 deletions apps/web/.next/server/app-paths-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"/_not-found": "app/_not-found.js",
"/account/page": "app/account/page.js",
"/api/auth/[...nextauth]/route": "app/api/auth/[...nextauth]/route.js",
"/api/store/route": "app/api/store/route.js",
"/page": "app/page.js"
}
Loading

0 comments on commit cdceb1b

Please sign in to comment.