Skip to content

Ready-to-use monorepo with Next.js and Nestjs using Turborepo

License

Notifications You must be signed in to change notification settings

bytaesu/mono-xs

Repository files navigation

mono-xs-img

Introduction

mono-xs offers a monorepo structure that leverages Turborepo to efficiently manage Next.js and Nestjs applications.

This is a primitive template generated using the Turborepo CLI and NestJS CLI, so feel free to modify it to fit your specific needs and start developing. You don’t have to use everything in the template.

I've recently been enjoying deploying the backend to the Fly.io platform, so Dockerfiles and related configurations are included.

While this setup enables deployment to multiple platforms, if you, like me, also favor Fly.io, you'll find that there's virtually no configuration needed from development to deployment.

Required Knowledge:

  • Monorepo structure (in this case, using Turborepo)
  • Docker (if you intend to use Fly.io)
  • Nestjs framework
  • Next.js framework

Deployment Guide

In this section, the process of deploying to the Fly.io platform is briefly explained.

1. Create Apps on Fly

fly apps create

2. Configure the fly.toml

Refer to Fly.io Docs

The necessary details have been commented in each fly.toml file.

3. Deploy

# Deploy a Single App

fly deploy --config fly.your-fly-app-name.toml
# Deploy All at Once
# You need to specify the respective fly.toml file names in the fly.deploy.sh file.

chmod +x fly.deploy.sh

./fly.deploy.sh

In closing

You can attach your desired database stack and use it with this. (I use PostgreSQL)

I prefer to avoid repetitive tasks and enjoy increasing productivity. I believe this repository will be very helpful for specific workflows.

Develop your ideas fast, ship them even faster🚀

> Reference I used

About

Ready-to-use monorepo with Next.js and Nestjs using Turborepo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published