Technology stack: vue3 + vuex + vue-router + webpack + sass + element-plus
https://docs.docker.com/compose/install/
Run the following command to run the latest stable image of lagrange-dao-we
docker build -t lagrangedao/lagrange-dao-web -f Dockerfile .
# for local test
# docker build -t lagrangedao/lagrange-dao-web -f Dockerfile_local .
docker run -d --name lagrange-dao-web -p 8080:8080 -t lagrangedao/lagrange-dao-web The service will be Available on:
Hit CTRL-C to stop the server
Run npm install to generate component.
# Node version below 17
$ npm run serve
# Node version 17 and above
$ npm run serve_t # (windows system)
$ npm run serve_uNavigate to http://localhost:8080/. The app will automatically reload if you change any of the source files.
# Build test projects
$ npm run build:test_t / npm run build:test_u / npm run build:test
# Build production projects
$ npm run build:prod_t / npm run build:prod_u / npm run build:prod
# You can use the npm run build command without any suffix if you are using a version of Node lower than 16, or you should use the command with the suffix name if you are using a version higher than 16
# The only difference between _t and _u is that _t uses the set keyword while _u uses the export keyword, and how you use it depends on which keyword your system supports.The build artifacts will be stored in the dist_test/dist_prod directory.
Preparation before operation:
Since this project is based on nodejs, you need to make preparations for nodejs. Before running the project, please ensure that the following applications have been installed in the system:
(1)、Node (Version v14.18.2 of Node was used for this project). Please refer to:Download and install node.