Files
doneit-web/readme.md
T

100 lines
1.6 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
2022-12-23 12:23:16 +01:00
## memory leak
set NODE_OPTIONS=--max_old_space_size=99999996 &&
npm i cordova-plugin-androidx-adapter --force &&
npm install jetifier --force &&
npx jetify --force
2022-12-22 11:01:58 +01:00
2021-07-10 08:45:51 +01:00
```
2023-01-16 09:06:12 +01:00
## Envarioment Depedencies
Java version 11
2021-07-10 08:45:51 +01:00
2022-12-23 12:23:16 +01:00
ionic build &&
npx cap add android &&
npx cap update
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
```
2022-12-23 12:23:16 +01:00
## 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
```
2023-02-27 15:40:13 +01:00
# Open xcode
ionic cap copy &&
ionic cap update &&
ionic cap open ios &&
2022-12-23 12:23:16 +01:00
2023-05-18 17:40:52 +01:00
# Android
npx cap copy android &&
ionic cap sync android
2022-12-23 12:23:16 +01:00
## Tag stable version
```bash
git tag stable
```
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.