https://github.com/aelfproject/create-aelf-dapp
Creates the aelf application with one command. Example & Components for developers.
https://github.com/aelfproject/create-aelf-dapp
Last synced: 4 months ago
JSON representation
Creates the aelf application with one command. Example & Components for developers.
- Host: GitHub
- URL: https://github.com/aelfproject/create-aelf-dapp
- Owner: AElfProject
- License: mit
- Created: 2024-06-12T09:58:32.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-28T01:56:06.000Z (over 1 year ago)
- Last Synced: 2025-07-11T19:41:02.896Z (11 months ago)
- Language: TypeScript
- Homepage:
- Size: 2.99 MB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# create-aelf-dapp
## Quick Start the template
Please turn to ./apps/create-aelf-dapp/REAME.md for more information.
```bash
npm create aelf-dapp my-aelf-dapp
cd my-aelf-dapp
```
## Quick Start the applications
Install dependencies
```bash
pnpm install
```
start the applications
```bash
# 3005 dev template & all demos
pnpm run -C apps/aelf-template dev
# 3006 socket
pnpm run -C apps/server-socket-io dev
# 3007 chaingpt
pnpm run -C apps/server-chaingpt start:dev
```
build
```bash
# independent
pnpm run -C packages/request-all-in-one build
lerna run build --scope request-all-in-one
# all
pnpm run build # pnpm recursive run build
lerna run build
```
publish to npm
```bash
# Publish all packages
lerna publish
# Publish single package
cd apps/create-aelf-dapp
npm publish
```
rm node_modules
```bash
# Remove the node_modules directory from all packages
lerna clean
rm -rf node_modules/
```
## add dependence
```bash
# example
pnpm install -C apps/aelf-template @ant-design/icons
```