GithubHelp home page GithubHelp logo

marcinek89xl / prepo-monorepo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from prepo-io/prepo-monorepo

1.0 0.0 0.0 27.18 MB

The monorepo for all prePO applications

Home Page: https://prepo.io

License: GNU Affero General Public License v3.0

Shell 0.02% JavaScript 0.50% TypeScript 89.20% CSS 0.10% HTML 0.04% Handlebars 0.03% Solidity 10.11%

prepo-monorepo's Introduction

prePO Monorepo

GitHub license Conventional Commits

prePO prePO Discord

Twitter Follow

The monorepo for all prePO applications.

What's inside?

This monorepo is based on Turborepo. It uses Yarn as a package manager. It includes the following packages/apps:

Apps and Packages

  • prepo-docs: Our documentation that can be found on this url: docs.prepo.io.
  • prepo-react-boilerplate: Boilerplate NextJs based application that we use for every new project we start.
  • config: eslint configurations (includes eslint-config-frontend and eslint-config-server)
  • tsconfig: tsconfig.jsons used throughout the monorepo (includes tsconfig/frontend.js, tsconfig/server.js and tsconfig/base.js)

Each package/app is 100% TypeScript.

Monorepo Stack

This boilerplate contains a modern stack for building Web3 apps:

Get started

Clone the repository:

git clone https://github.com/prepo-io/prepo-monorepo

Install:

cd prepo-monorepo
yarn install

Move to the folder of the application you want to run and run it

cd apps/prepo-x-y
yarn dev

Work on a specific application

If you want to work on a specific application:

  1. You should move your terminal to that specific folder. Example:
cd apps/[frontend/smart-contracts]/[app-name]
  1. You should not do yarn install on the application folder. The only place to do yarn install is on the root folder. After that, your application should work as expected. Yarn workspaces will handle the instalation of your packages corresponding to your application package.json. If there's any package version that is re-used across other applications, that will also be handled automatically.

FAQ

Which one is the name of my application on yarn workspaces?

To get that the name of your application, you just need to open the package.json file inside your application folder and that would be the name property written there.

How do I install a new dependency on my application?

Locate the name of your application in yarn workspaces.

Then you can run the command:

yarn workspace [yarn-workspace-application-name] add react

Don't forget to remove the caret after installing to lock the version and re-run yarn install on the root folder.

How do I install a new dev dependency on my application?

Locate the name of your application in yarn workspaces.

Then you can run the command:

yarn workspace [yarn-workspace-application-name] add @types/react -D

Don't forget to remove the caret after installing to lock the version and re-run yarn install on the root folder.

How do I install a dependency/dev dependency on the root package.json that will be shared across other apps?

Go to the root folder of this monorepo.

Then you can run the command:

yarn add dependency-name -W

Include -D if you are planning to install a dev dependency.

Don't forget to remove the caret after installing to lock the version and re-run yarn install on the root folder.

Disclaimer

The AGPL V3 license only applies to the code within the repository. Any assets or other files (in part or whole) that already have a non-open-source license are excluded.

prepo-monorepo's People

Contributors

chrisling-dev avatar dependabot[bot] avatar georgesmithishere avatar jonezque avatar nilay27 avatar ramenforbreakfast avatar xavierekkel avatar

Stargazers

 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.