Skip to content

🐳 Form generator build with turbo Monorepo, considering efficient data mapping and migration (Full Stack Project)

Notifications You must be signed in to change notification settings

renovate-bot/sammyfilly-_-monorepo-docker-fullstack-app

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

16 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Turbo Monorepo for Nodejs and React full stack app

Hi πŸ–this is full stack app version 2.0, check out the previous repo πŸ‘‰ Form Hub, which used docker to run the frontend and backend in two separate repo. This repo is using Turborepo to run the frontend and backend in one repo. The docker setup is still there, but restructured the whole app to use turborepo.

Fun fact, turborepo is created by the same person who created Nextjs.

πŸ“Ž Run the app

Install the required dependencies with yarn install in the root folder, frondend folder and backend folder.

Go to the root folder, run yarn dev and docker-compose up to start the app.

πŸ“• Learning Notes:

  1. When you move the backend and frontend to monorepo, the first two things: 1 delete git root and node_modules, 2 change the package name in package.json.
  2. Turbo setting for frontend, we only want to build and run the things we required for frontend.
    "build": "turbo run build --filter=frontend",
    "dev": "turbo run dev --filter=frontend --parallel",

πŸ“ Summary for app stucture

Very exciting, this monorepo full stack app is working with many new features, I would like to summarize their functions for this app and build whole app structure for better understanding.

roadmap

❓ Issues:

There is alter in Github "Your repository has dependencies with security vulnerabilities." I think it is because of the turborepo, I will continue to troubleshoot this issues. πŸ‘©β€πŸ”§

Update: the dependencies issues is fixed, have fun dependabot[bot] helped me update everything antomatically. GitHub is an amazing playground πŸš€

πŸ’– Hope this repo can help you to understand how to use turborepo to build a full stack app.

πŸ“š Resources:

The following is from the original Turborepo introduction

Turborepo starter

This is an official Yarn v1 starter turborepo.

What's inside?

This turborepo uses Yarn as a package manager. It includes the following packages/apps:

Apps and Packages

  • docs: a Next.js app
  • web: another Next.js app
  • ui: a stub React component library shared by both web and docs applications
  • eslint-config-custom: eslint configurations (includes eslint-config-next and eslint-config-prettier)
  • tsconfig: tsconfig.jsons used throughout the monorepo

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
yarn run build

Develop

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

cd my-turborepo
yarn run dev

Remote Caching

Turborepo can use a technique known as Remote Caching to share cache artifacts across machines, enabling you to share build caches with your team and CI/CD pipelines.

By default, Turborepo will cache locally. To enable Remote Caching you will need an account with Vercel. If you don't have an account you can create one, then enter the following commands:

cd my-turborepo
npx turbo login

This will authenticate the Turborepo CLI with your Vercel account.

Next, you can link your Turborepo to your Remote Cache by running the following command from the root of your turborepo:

npx turbo link

Useful Links

Learn more about the power of Turborepo:

About

🐳 Form generator build with turbo Monorepo, considering efficient data mapping and migration (Full Stack Project)

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 82.0%
  • CSS 7.8%
  • Dockerfile 4.1%
  • JavaScript 3.4%
  • HTML 2.7%