# exp190929-frontend **Repository Path**: llap/exp190929-frontend ## Basic Information - **Project Name**: exp190929-frontend - **Description**: No description available - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-10-20 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Frontend of Assignment 190929 ## Demo - [http://container.ll-ap.cn:8901](http://container.ll-ap.cn:8901) - Demo user: admin, password: 123456 - Demo card users: 1. Card #: 1234567890123456, PIN: 123456 1. Card #: 1234567890123455, PIN: 123456 ## Progress > All the user mechanisms are using the same one (/member manages all the accounts, except /card) - [x] 1\. Blog `/blog` - [x] 2\. Book `/book` - [x] 3\. Document `/doc` - [x] 4\. Stock `/stock` - [x] 5\. Card `/card` - [x] 6\. AQI `/aqi` - [x] 7\. Membership `/member` - [x] 8\. Forum / Invitations `/forum` - [x] 9\. Membership (Duplicated) `/member` - [x] 10\. Book (Expanded) `/book` ## Docker setup 1. Clone repository 1. `docker build -t .` (if you have built production files use `Dockerfile-no-build` instead of `Dockerfile`) > Notice: `npm run build` consumes over 500MB memory space, local builds are recommended. 1. `docker run -d -p :80 ` 1. Open `http://:` ## Use local build & docker 1. Upload `dist` folder, `Dockerfile-no-build` and `nginx.conf` to your server 1. Rename `Dockerfile-no-build` to `Dockerfile` 1. `docker build -t .` 1. `docker run -d -p :80 ` 1. Open `http://:` ## Project setup (without docker) ``` npm install --registry=https://registry.npm.taobao.org ``` ## Environments You can specify the url of your backend by changing `VUE_APP_BACKEND` in `.env.[mode]` files `npm run serve` uses `.env.development` and `npm run build` uses `.env.production` which has a online backend configuration. ### Compiles and hot-reloads for development ``` npm run serve ``` ### Compiles and minifies for production ``` npm run build ```