Next.js + Django Boilerplate

$20+
0 ratings

Please note that this product is not available yet. As of 17th Feb 2024 I'm still working on it and hope to have it ready within the next 2 weeks. If you do purchase before then, you'll have to wait a bit before you receive the template files.

Start your next project immediately

Instead of spending hours figuring out how to get Next.js & Django to work together nicely, get a ready-to-use template that takes care of the boring & non-value-add stuff for you.

This code template let's you get up-and-running with a Django powered backend & Next.js powered frontend in minutes. I've taken care of the basics - now you go and build something awesome with it.

Features

  • Authentication using Django user accounts integrated with the Next.js frontend. This includes:
    • Next.js powered forms & Django Rest Framework (DRF) powered APIs that provide; sign-up, login, reset password, profile management.
    • Helper JS functions to make authenticated fetch calls to the Django backend.
    • Example Next.js pages that use authentication secured DRF APIs so you can replicate that pattern where needed.
  • zod powered form validation on the frontend to provide a great user experience.
  • TailwindCSS setup in the frontend.
  • Email sending with Postmark - the best ESP I've used so far with great deliverability.
  • Celery with Redis OR AWS SQS for background task processing.
  • Docker files that build the backend & frontend containers so you can easily deploy anywhere.
  • Terraform scripts that deploy to AWS ECS.
  • A detailed guide to the setup and the choices I made.

Why should you use this template?

If you're looking for a template that gives you 2 separate codebases for your backend (Django) and frontend (Next.js) that just work together out of the box, this template is what you need.

There are some amazing boilerplate templates out there for Django (Saas Pegasus is an amazing one) and Next.js (Boilerbay is a great one), but I couldn't find any that worked for my specific use-case for a recent project; a Django backend and a Next.js frontend. The closest I found was django-nextjs but that combines the two frameworks together much more tightly than I wanted. I needed 2 repos - 1 backend & 1 frontend, so 2 different teams of developers could work independently.

This template is also intentionally much simpler than other popular boilerplate templates for Django or Next.js. Every app is different - and the less the template does, the more room it leaves for you to use it exactly as you want. So I take care of only the most essential stuff - auth, background tasks, Docker container builder. You get a solid foundation - but where you go from there is up to your requirements.

You've convinced me! How do I buy & use this?

Great decision! There are 2 paths you can choose:

  • Every purchase comes with a 30 minute video call with me. In that call I can walk you through the setup and explain how I've set it up. You can have your most important getting started questions answered - or you can just chat to me about anything related to building Django & Next.js projects. Up to you how you use that time.
  • There is a readme included in your purchase that should answer the most important questions. I focused on making this template simple to get started with, so that readme should be enough to get you going within minutes.

I need more convincing

Understandable! I'm here to answer any questions you might have - especially if you're wondering if this template will work for your specific needs. I don't want you to buy something you're not happy with.

You can reach out to me on Twitter/X (https://twitter.com/asadjibranahmed) and I'll happily answer your questions.

You can also book a 10 minute meeting with me on my Calendly link. This requires a $5 payment to make sure my calendar is not spammed. If you decide to purchase the template after this call, I'll give you a $5 discount towards your purchase.

What if I'm unhappy after purchasing this?

I have a 15 day no questions asked refund policy. See that for more details.

$
I want this!

No questions asked refunds within 15 days

You'll get the amount you paid minus any Gumroad/Stripe fees back immediately on asking - no questions asked.

I would appreciate however if you could give me feedback on why this didn't work for you - so that I can improve it for future customers. However you don't need to do so if you don't want to.

This is an honor based system - given that you will get the template files immediately on purchase, nothing stops you from using it after getting a refund. I just believe that you're a decent person who won't do that.

Last updated Feb 16, 2024

A zip with all the files needed to get started building your Next.js + Django based project.

Copy product URL
$20+

Next.js + Django Boilerplate

0 ratings
I want this!