2021-07-10 08:45:51 +01:00
|
|
|
# Gabinete Digital
|
|
|
|
|
|
|
|
|
|
## 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
|
|
|
|
|
npm install -g http-server
|
2021-07-10 09:17:52 +01:00
|
|
|
npm install -g @angular/cli
|
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.
|