Skip to content

Repository files navigation

Lagrange web

Technology stack: vue3 + vuex + vue-router + webpack + sass + element-plus

Docker Deployment

Install Docker Compose

https://docs.docker.com/compose/install/

Stable

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:

http://127.0.0.1:8080

http://172.17.0.2:8080

Hit CTRL-C to stop the server

Build from Source

Installation dependency

Run npm install to generate component.

Development server

# Node version below 17
$ npm run serve

# Node version 17 and above
$ npm run serve_t # (windows system)
$ npm run serve_u

Navigate to http://localhost:8080/. The app will automatically reload if you change any of the source files.

Build project

# 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.

Pre order preparation

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.

Customize configuration

See Configuration Reference.

About

Frontend of Lagrange DAO

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages