Skip to main content
CF

Bedrock: Jumpstart your next SaaS product

0h 0m 0s
English
Paid

The modern full-stack Next.js & GraphQL boilerplate with user authentication, subscription payments, teams, invitations, emails and everything else you need.

Every time I build a SaaS product I waste weeks gluing together standard tooling and functionality: user authentication, cookie sessions, subscription payments, billing management, team management, GraphQL API, transactional emails, ESLint, TypeScript, Prettier, Cypress,...

That's why I created Bedrock.

Bedrock combines all the best tools the JS ecosystem has to offer into one solid foundation for your SaaS product. It feels fantastic to work with now and sets you up to scale as your code- and userbase grows.

And the best part is: you don't have to read thousands of pages of documentation to learn how to use Bedrock. If you know Next.js and GraphQL you can start coding almost immediately!

Tools

Bedrock combines all the best tools the JS ecosystem has to offer and makes them work well together. This means you get the best developer experience and can just focus on building your product.

There is absolutely no magic in Bedrock, just a bunch of glue code to make all of these tools best friends. You do not have to know most of these technologies to be productive and Bedrock is designed so you can easily remove all the optional tools

Features

  • User authentication

    Authenticate users without worrying about security and storing passwords. Users get a magic link sent to their email and as soon as they click it they're logged in!

  • Team support

    Bedrock is ready for teams out of the box. Users can create "projects", each of which has its own billing and members. The pre-built invitation system allows users to invite their colleagues to their projects.

  • Subscription payments

    Securely accept subscription payments with Stripe Checkout. Bedrock comes ready for any plans you want (including yearly, per-seat pricing and everything else) and already handles invoices, billing management, PCI compliance, and much more.

  • Unstyled

    Bedrock comes without any kind of styling or component library because, let's be honest, you'd just delete it anyway. The frontend contains the minimal code necessary to make the functionality work. Make it look the way you want it to by bringing your own component library or using any open source one!

  • GraphQL API & integrations

    Enjoy the fantastic developer experience of creating a GraphQL API with Nexus & Prisma and querying it with urql. Bedrock also comes with token-based API authentication, allowing users to programmatically integrate with your product.

  • Adjustable to your preferences

    Bedrock is designed to be modular so you can fine-tune it to your preferences. All tools except for Next.js are completely optional and can easily be removed or swapped for your favorite alternative.

  • The best developer experience

    There is a lot of fantastic tooling in the JavaScript ecosystem, but making it all work well together can be tricky. Bedrock comes with everything you need, configured perfectly, so you (and your team) can move fast.

  • Type-safe from the database to the client

    Move fast thanks to TypeScript catching your bugs before you even hit "Save". Rename a field in the database schema or GraphQL API? TypeScript will immediately highlight where you need to update your code.

  • Code generation

    Bedrock leverages code generation where it can so you have to code less and move faster. Prisma generates a custom ORM and migrations from your database schema, Nexus generates a custom GraphQL API from your ORM and GraphQL Codegen generates React hooks for fetching data from your GraphQL API.

  • Infinite scalability

    Thanks to serverless, you never have to worry about scaling your servers. No matter how much traffic your product gets, Next.js will be able to handle it.

Additional

Внимание: Это не Видеокурс. 

Updates

v1.5.0: Pothos & GraphQL Yoga Latest

TL;DR: Bedrock now uses Pothos to create the GraphQL schema and GraphQL Yoga to create the GraphQL server! 

What's Changed

  • Move from Micro to GraphQL Yoga for creating the GraphQL server by @zoontek and @mxstbr in #448
  • Move from Nexus to Pothos for creating the GraphQL schema by @mxstbr in #452
  • Update all deps by @zoontek in #451, including the following major upgrades:
    • GraphQL v15 -> v16
    • React v17 -> v18
    • Cypress v9 -> v10
    • Prisma v3 -> v4
  • Update 3-projects.md by @jforaker in #402

About the Author: Max Stoiber

Max Stoiber thumbnail

Max Stoiber is an Austrian developer best known as a co-creator of styled-components (the dominant CSS-in-JS library for React for a generation of front-end developers) and the founder of Bedrock — a paid Next.js SaaS starter aimed at developer-founders shipping production SaaS products fast. He is one of the most cited names in the modern React ecosystem.

His CourseFlix listing carries Bedrock — Jumpstart Your Next SaaS Product — a comprehensive Next.js SaaS starter pre-wired with auth, billing (Stripe), the multi-tenant data model, and the operational patterns for running a real production SaaS.

Material is paid and aimed at developer-founders shipping SaaS products on the React / Next.js stack. For broader content, see the Next.js and SaaS & Indie Hacking category pages on CourseFlix.

Related courses

Frequently asked questions

What are the prerequisites for enrolling in this course?
This course is designed for developers with a foundational understanding of web development concepts, particularly those familiar with full-stack frameworks like Next.js. Familiarity with GraphQL and concepts around user authentication, subscription payments, and team management is recommended to make the most of the course material.
What projects will I build during the course?
This course focuses on building a full-stack SaaS product using the Next.js & GraphQL boilerplate. It includes features such as user authentication, subscription payments, team management, invitations, and email functionalities. While specific projects are not listed, the course provides a comprehensive setup for developing a SaaS application with these modern features.
Who is the target audience for this course?
The course is tailored for software developers and engineers who are looking to rapidly prototype or jumpstart a SaaS product using modern technologies like Next.js and GraphQL. It is suitable for those interested in implementing common SaaS functionalities such as authentication and payments.
How does the course depth compare to other similar courses?
Unlike courses that may focus on individual technologies or high-level concepts, this course provides a practical, ready-to-use boilerplate for building SaaS applications. It emphasizes integrating various features such as user authentication and subscription services, offering a hands-on approach to developing a full-fledged product.
Which tools and platforms are covered in the course?
The course covers the Next.js framework and GraphQL for building modern, full-stack applications. It also dives into user authentication systems, subscription payments, and team management functionalities, providing a complete boilerplate setup for SaaS development.
What topics are not covered in this course?
The course does not include lessons focused on foundational web development concepts or basic programming skills. It assumes students have prior knowledge in these areas and focuses instead on applying this knowledge to build a SaaS product with specific features and integrations.
What is the expected time commitment for this course?
While the course does not specify a runtime, it is important to account for time to review the material, implement the boilerplate setup, and develop the features covered. This could vary depending on the student's prior experience and familiarity with the technologies involved.