Skip to content

Creates the aelf application with one command. Example & Components for developers.

License

Notifications You must be signed in to change notification settings

AElfProject/create-aelf-dapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

create-aelf-dapp

Quick Start the template

Please turn to ./apps/create-aelf-dapp/REAME.md for more information.

npm create aelf-dapp my-aelf-dapp
cd my-aelf-dapp

Quick Start the applications

Install dependencies

pnpm install

start the applications

# 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

# 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

# Publish all packages
lerna publish

# Publish single package
cd apps/create-aelf-dapp
npm publish

rm node_modules

# Remove the node_modules directory from all packages
lerna clean
rm -rf node_modules/

add dependence

# example
pnpm install -C apps/aelf-template @ant-design/icons