| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
DCellar is a development management console built on the BNB Greenfield decentralized storage network.
This repository is a monorepo that holds the source code to multiple projects for Dcellar. It is built using Rush.
See rush.json for the complete list of packages.
Each package has its own node_modules directory that contains symbolic links to common dependencies managed by Rush.
| folders | Description |
|---|---|
| /apps/dcellar-web-ui | Storage Console for Developers on BNB Greenfield Network |
To get a local copy up and running, please follow these simple steps.
Here is what you need to be able to run Cal.com.
git clone git@github.com:node-real/dcellar.gitcd dcellarrush install & rush buildLet's take dcellar-web-ui as example.
Go to the app's directory, and make it will be your working directory.
cd apps/dcellar-web-uiBuild the internal libs that it dependents
rush build -T .Set up your .env file
cp .env.example .env.localYou can run rushx command to run scripts in package.json.
rushx dev # It will run 'dev' script in package.jsonrushx is just like npm run
Now you can modify things and see the changes.
DO NOT use npm install/yarn install to update package dependency.
USE following commands
rush add -p react # It will add react as dependency for your working app
rush add -p @types/react --dev # It will add @types/react as devDependencies
currently, rush add command does not support add multiple packages in one line, so you can manually add dependency in package.json, then call
rush update # It will install the dependecy newly added in package.jsonor you can call rush add multiple times
rush add -p react -s # skip rush update, it will only modify package.json
rush add -p react-dom -s
rush update # after you add packagesIt is highly recommended to use vscode workspace, so you can concentrate on the project you are working on as well as you can have an overview of other projects in the monorepo
There is a monorepo.code-workspace in the root dir, open it with vscode will automatic set up the workspace.
The vscode plugin Monorepo Workspace is a great tool. You can choose packages you are interested in to show in the workspace to avoid noise.
If you use editor other than vscode, just make your app's directory as your workspace and use rush commands to handle dependency. You can develop as usual.
To avoid phantom dependencies, every package that used by import xx from 'package-name' should be the dependency of the app.
We can import from next even though we do not have a direct next dependency before.
After we switched to monorepo, we have to add next as dependency in package.json, or it will be an error
$ rush add -p nextPlease follow our DCellar Contribution Guide.
See LICENSE for more information.
| Back | FazBrowse Home | New Git URL |