Skip to content

ilia-os/next-monorepo-starter

Repository files navigation

Production-ready monorepo with typescript next application and nginx set up in docker.

Both prod & dev environments are supposed to be run in docker. There are known issues while working with docker-desktop and buildkit runtime (see getting started).

For usage without docker, see recipes

Dependencies

node yarn docker docker-compose

Quick start

cp ./apps/frontend/.env.example ./apps/frontend/.env

Dev

yarn install # otherwise cant use package.json scripts
yarn docker:dev:prepare # build & install deps
yarn docker:dev # run dev environment
# check package.json for more
Frontend should now be accessible on port 3000

Prod

Build & run production images with facade nginx

yarn docker:prod:build
yarn docker:prod:up
Frontend should now be accessible on port 80

Features

  • yarn workspace monorepo
  • production-ready docker setup with nginx proxy
  • dev in docker
  • generators made with hygen
  • i18n-ready with locales HMR & scanner
  • routes metadata framework
  • next-seo setup
  • sitemap generation
  • embedding svg with svgr
  • prettier, eslint, typescript setup
Feature/Pull Requests are welcome