Files
doneit-web/readme.md
T

83 lines
1.4 KiB
Markdown
Raw Normal View History

2022-06-29 15:05:28 +01:00
# Gabinete Digital v0.1
2021-07-10 08:45:51 +01:00
## Requirements
2021-07-12 16:05:05 +01:00
[node >= 14](https://nodejs.org/download/release/v14.15.0/node-v14.15.0-x86.msi)
2021-07-10 08:45:51 +01:00
## Installation
Use the package manager npm to install dependencies.
```bash
npm ci
npm install
npm install -g @ionic/cli
2021-08-05 13:42:11 +01:00
npm install -g lite-server
2021-07-10 09:17:52 +01:00
npm install -g @angular/cli
2021-08-09 13:56:17 +01:00
npm install -g cordova
npm install -g cordova-res
2021-08-05 13:42:11 +01:00
## Mobile first dependencies
2021-08-23 13:56:08 +01:00
ionic cordova plugin add cordova-plugin-network-information
2021-08-13 10:34:22 +01:00
## memory leak
2022-12-22 11:01:58 +01:00
set NODE_OPTIONS=--max_old_space_size=99999996
npm i cordova-plugin-androidx-adapter
npm install jetifier
npx jetify
2021-07-10 08:45:51 +01:00
```
2021-08-23 10:34:32 +01:00
## BUG
Fix cordova-plugin-camera crash
```bash
## uninstall
npx cordova plugin remove cordova-plugin-camera
## install
npx cordova plugin add https://github.com/PieterVanPoyer/cordova-plugin-camera/#bugfix/issue-665-save-instance-restore-bug
```
2021-07-10 08:45:51 +01:00
## Start the development server
```bash
ionic serve
```
## build for production and launch server
```bash
ionic serve build --prod
npm run start
```
2021-07-10 09:22:32 +01:00
## Run test[.](#run-test)
2021-07-10 08:45:51 +01:00
```bash
2021-07-10 09:11:03 +01:00
# incase you don't have .env file
cp ./.env.example ./.env
2021-07-10 09:16:14 +01:00
# incase you don't have a local build yet
ionic serve build --prod
2021-07-11 07:36:41 +01:00
npm run test
2021-07-10 08:45:51 +01:00
```
2021-07-20 12:30:52 +01:00
2021-07-20 12:34:37 +01:00
## Deploy in local network
2021-07-20 12:30:52 +01:00
```bash
ionic build --prod
2021-07-20 12:34:37 +01:00
cp -r ./www ./serve
2021-07-20 12:30:52 +01:00
npm run dev:share
```
2021-07-10 08:45:51 +01:00
## Contributing
2021-07-10 09:22:32 +01:00
2021-07-10 08:45:51 +01:00
For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.