Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cesium2s
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
clients
Cesium-grp
cesium2s
Merge requests
!15
enh: convert every graphql requests to Hasura relay API
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
enh: convert every graphql requests to Hasura relay API
enh/hasura-relay-api
into
develop
Overview
1
Commits
7
Pipelines
0
Changes
32
Merged
poka
requested to merge
enh/hasura-relay-api
into
develop
1 year ago
Overview
1
Commits
7
Pipelines
0
Changes
32
Expand
0
0
Merge request reports
Compare
develop
version 7
e87cf8d4
1 year ago
version 6
e7ba9e58
1 year ago
version 5
4a7c6c87
1 year ago
version 4
c2943bcc
1 year ago
version 3
bd7f1d85
1 year ago
version 2
9d3d1ef7
1 year ago
version 1
fdc3b5a9
1 year ago
develop (base)
and
latest version
latest version
8226bd84
7 commits,
1 year ago
version 7
e87cf8d4
6 commits,
1 year ago
version 6
e7ba9e58
6 commits,
1 year ago
version 5
4a7c6c87
5 commits,
1 year ago
version 4
c2943bcc
4 commits,
1 year ago
version 3
bd7f1d85
3 commits,
1 year ago
version 2
9d3d1ef7
2 commits,
1 year ago
version 1
fdc3b5a9
1 commit,
1 year ago
32 files
+
11890
−
9225
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
32
Search (e.g. *.vue) (Ctrl+P)
doc/build.md
+
99
−
84
Options
# Building from
s
ource
# Building from
S
ource
Cesium² is an Angular
A
pp
(Angular with Ionic)
.
Cesium² is an Angular
a
pp
built with Ionic. This article will guide you through setting up your environment and building the application
.
This article will explain how to install your environment, then build the application.
## Installation Tools and Getting the Sources
## Installation tools, and get sources
1.
Install
[
NVM
](
https://github.com/nvm-sh/nvm
)
1.
Install
[
NVM
](
https://github.com/nvm-sh/nvm
)
2.
Install Node v18 (e.g. v18.19.0)
2.
Install Node v18 (e.g., v18.19.0):
```
bash
nvm
install
18.19.0
```
3.
Install global dependency:
```
bash
```
bash
nvm
install
18.19.0
npm
install
-g
@ionic/cli @angular/cli
```
```
3.
Install global dependencies:
```
bash
npm
install
-g
@ionic/cli @angular/cli
```
4.
Get the sources by cloning the repository:
```
bash
git clone ...
```
4.
Get sources (clone the repo) :
`git clone ...`
### Optional: Install Additional Tools
### Install additional tools (optional)
```
bash
```
bash
sudo
apt-get
install
chromium-browser docker.io
sudo
apt-get
install
chromium-browser docker.io
```
```
## Web
b
uild
## Web
B
uild
###
For d
evelopment and
t
est
###
D
evelopment and
T
est
ing
1.
Install project's dependencies:
1.
Install the project's dependencies:
```
bash
cd
cesium
npm
install
```
2.
Check environment configuration:
```
bash
cd
cesium
npm
install
```
2.
Check the environment configuration:
-
Edit the file
`src/environment/environment.ts`
-
Edit the file
`src/environment/environment.ts`
3.
Start the app
3.
Start the app:
```
bash
cd
cesium
```
bash
npm start
cd
cesium
```
npm start
```
By default, the app should be accessible at
[
http://localhost:4200
](
http://localhost:4200
)
By default, the app should be accessible at
[
http://localhost:4200
](
http://localhost:4200
)
To change the default port, use this command instead:
To change the default port, use this command instead:
```
bash
cd
cesium
ng serve
--port
[
port]
```
### Web build for production
```
bash
cd
cesium
ng serve
--port
[
port]
```
1.
Check environment configuration:
### Production Web Build
1.
Check the environment configuration:
-
Edit the file
`src/environment/environment-prod.ts`
-
Edit the file
`src/environment/environment-prod.ts`
2.
Create the release:
2.
Create the release:
```
bash
npm run build:prod
```
## Android build
```
bash
npm run build:prod
```
## Android Build
### Debug APK for Development and Testing
### Build a debug APK, for development and test
1.
Install the Android build environment:
1.
Install the android build environment:
```
bash
```
bash
cd
sumaris-app/scripts
cd
sumaris-app/scripts
./env-android.sh
./env-android.sh
```
```
2.
Create a debug APK file:
2.
Create a debug APK file:
```
bash
cd
sumaris-app/scripts
./build-android.sh
```
### Build a release APK, for production
```
bash
cd
sumaris-app/scripts
./build-android.sh
```
1.
Check environment configura
tion
:
### Release APK for Produc
tion
1.
Check the environment configuration:
-
Edit the file
`src/environment/environment-prod.ts`
-
Edit the file
`src/environment/environment-prod.ts`
2.
Create a release APK file:
2.
Create a release APK file:
```
bash
cd
sumaris-app/scripts
./release-android.sh
```
## Useful links
```
bash
cd
sumaris-app/scripts
./release-android.sh
```
-
Ionic 4 colors: https://www.joshmorony.com/a-primer-on-css-4-variables-for-ionic-4/
## Useful Links
-
Migration to Ionic 4 tips: https://www.joshmorony.com/my-method-for-upgrading-from-ionic-3-to-ionic-4/
-
Signing Android APK: See doc at
-
[
Ionic 4 Colors
](
https://www.joshmorony.com/a-primer-on-css-4-variables-for-ionic-4/
)
https://www.c-sharpcorner.com/article/create-ionic-4-release-build-for-android/
-
[
Migration to Ionic 4 Tips
](
https://www.joshmorony.com/my-method-for-upgrading-from-ionic-3-to-ionic-4/
)
-
[
Signing Android APK
](
https://www.c-sharpcorner.com/article/create-ionic-4-release-build-for-android/
)
## Troubleshooting
## Troubleshooting
### Error on
d
atasource
,
or
a
ngular
m
aterial
t
able
### Error on
D
atasource or
A
ngular
M
aterial
T
able
-
Checkout the project https://github.com/e-is/angular4-material-table
1.
Check out the project:
```
bash
git clone https://github.com/e-is/angular4-material-table.git
```
bash
cd
angular4-material-table
git clone https://github.com/e-is/angular4-material-table.git
```
cd
angular4-material-table
-
Build the project:
```
```
bash
npm
install
2.
Build the project:
npm run build
cp
package
*
.json ./dist
```
bash
```
npm
install
-
Link to your local NPM repo:
npm run build
```
bash
cp
package
*
.json ./dist
cd
dist
```
npm
link
```
3.
Link to your local NPM repo:
-
Use it from Sumaris project:
```
bash
```
bash
cd
<sumaris_app_root>
cd
dist
npm
link
angular4-material-table
npm
link
```
```
4.
Use it from the Sumaris project:
```
bash
cd
<sumaris_app_root>
npm
link
angular4-material-table
```
Loading