2024-03-18 09:04:36 +00:00
|
|
|
# tethys.frontend is a typescript-vueapp
|
2024-05-10 08:50:10 +00:00
|
|
|
|
2021-10-28 08:31:51 +00:00
|
|
|
## Project setup
|
2024-03-18 09:04:36 +00:00
|
|
|
|
|
|
|
```bash
|
2021-10-28 08:31:51 +00:00
|
|
|
npm install
|
|
|
|
```
|
|
|
|
|
2024-03-18 09:04:36 +00:00
|
|
|
## create .env file for environments
|
|
|
|
|
|
|
|
```bash
|
|
|
|
cp .env.example .env
|
2021-10-28 08:31:51 +00:00
|
|
|
```
|
2024-03-18 09:04:36 +00:00
|
|
|
|
|
|
|
### Compiles and hot-reloads for development
|
|
|
|
|
|
|
|
```bash
|
2021-10-28 08:31:51 +00:00
|
|
|
npm run serve
|
|
|
|
```
|
|
|
|
|
|
|
|
### Compiles and minifies for production
|
2024-03-18 09:04:36 +00:00
|
|
|
|
|
|
|
```bash
|
2021-10-28 08:31:51 +00:00
|
|
|
npm run build
|
|
|
|
```
|
|
|
|
|
2024-03-18 09:04:36 +00:00
|
|
|
Check out deployment instructions at <https://cli.vuejs.org/guide/deployment.html> \
|
|
|
|
After building, copy the dist folder to the web root of your Nginx server.
|
|
|
|
|
2021-10-28 08:31:51 +00:00
|
|
|
### Lints and fixes files
|
2024-03-18 09:04:36 +00:00
|
|
|
|
|
|
|
```bash
|
2021-10-28 08:31:51 +00:00
|
|
|
npm run lint
|
|
|
|
```
|
|
|
|
|
2024-03-18 09:04:36 +00:00
|
|
|
### Customize build and dev configuration
|
|
|
|
|
2021-10-28 08:31:51 +00:00
|
|
|
See [Configuration Reference](https://cli.vuejs.org/config/).
|