Giter Site home page Giter Site logo

turborepo-prisma-auth's Introduction

Turborepo starter

Starter with prisma / next auth / and two next app

Using this example

Run the following command:

pnpm install turbo --global

What's inside?

This Turborepo includes the following packages/apps:

Apps and Packages

  • web: another Next.js app with app directory
  • admin: another Next.js app with app directory with gate wrapper to check session
  • ui: a stub React component library shared by both web and admin applications
  • eslint-config-custom: eslint configurations (includes eslint-config-next and eslint-config-prettier)
  • tsconfig: tsconfig.jsons used throughout the monorepo
  • auth-config: next-auth global config for all apps to inport
  • prisma-database: global prisma for all apps to import (one db for all)

Each package/app is 100% TypeScript.

Utilities

This Turborepo has some additional tools already setup for you:

Build

To build all apps and packages, run the following command:

cd my-turborepo
pnpm build

Develop

To develop all apps and packages, run the following command:

cd my-turborepo
pnpm dev

Env

(mongodb connection url)

DATABASE_URL=
NODE_ENV="development"


EMAIL_SERVER_USER=
EMAIL_SERVER_PASSWORD=
EMAIL_SERVER_HOST=
EMAIL_SERVER_PORT=
EMAIL_FROM=

Useful Links

Learn more about the power of Turborepo:

turborepo-prisma-auth's People

Contributors

borcioo avatar

Stargazers

Jorge Luis Sanchez avatar Yosuke Oshima avatar Tomasz Dłuski avatar

Watchers

 avatar

turborepo-prisma-auth's Issues

i keep getting an fs module not found error

hi I tried using the nextauth config as you have shown but it keeps giving me this error message

admin:dev: Module not found: Can't resolve 'fs' admin:dev: admin:dev: https://nextjs.org/docs/messages/module-not-found admin:dev: admin:dev: Import trace for requested module: admin:dev: ../../node_modules/.pnpm/[email protected]/node_modules/nodemailer/lib/mailer/index.js admin:dev: ../../node_modules/.pnpm/[email protected]/node_modules/nodemailer/lib/nodemailer.js admin:dev: ../../node_modules/.pnpm/[email protected][email protected][email protected][email protected][email protected][email protected]_r_bara4yjfrh3qgqyuiivchmowq4/node_modules/next-auth/providers/email.js admin:dev: ../../packages/auth-config/src/auth-options.ts

i cant figure out how to fix it other than adding a webpack config to nextjs app but that seems to be a hacky solution

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.