Coder Social home page Coder Social logo

renovate-bot / sammyfilly-_-monorepo-docker-fullstack-app Goto Github PK

View Code? Open in Web Editor NEW

This project forked from x-oss-byte/monorepo-docker-fullstack-app

0.0 0.0 0.0 488 KB

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

JavaScript 3.38% TypeScript 82.04% CSS 7.82% HTML 2.71% Dockerfile 4.06%

sammyfilly-_-monorepo-docker-fullstack-app's Introduction

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:

sammyfilly-_-monorepo-docker-fullstack-app's People

Contributors

dependabot[bot] avatar yanliu1111 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.