Skip to content

Commit f46652b

Browse files
authored
Merge pull request #40 from microting/master
Updates
2 parents 7b26b5a + 2d37507 commit f46652b

File tree

476 files changed

+25501
-10012
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

476 files changed

+25501
-10012
lines changed

.gitignore

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -361,18 +361,18 @@ eFormAPI/eFormAPI/expection\.txt
361361

362362
\.DS_Store
363363

364-
eFormAPI/eFormAPI/Plugins/
364+
eform-client/src/app/plugins/
365365

366-
eFormAPI/EformBase\.Pn/Plugins/EformBase/
367366

368-
eFormAPI/Plugins/Vehicles\.Pn/Vehicles/
367+
eFormAPI/eFormAPI\.Web/API\.doc\.xml
368+
eFromAPI/eFormAPI\.Web/Plugins/
369+
eFromAPI/eFormAPI\.Web/output/
370+
eFromAPI/eFormAPI\.Web/dataFolder/
369371

370372

371-
eFormAPI/Plugins/
372-
eFormAPI/eFormAPI/Areas/HelpPage/HelpPage.css
373373

374-
eFormAPI/eFormAPI/output/
375-
eFormAPI/eFormAPI/dataFolder/
374+
eFormAPI/eFormAPI\.Web/Plugins/
376375

377-
eform-client/src/app/plugins/modules/customers-pn/
376+
eFormAPI/eFormAPI\.Web/output/
377+
FormAPI/eFormAPI.Web/appsettings.json
378378

.travis.yml

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,41 @@
1-
dist: trusty
1+
dist: xenial
22
addons:
3-
firefox: latest
3+
chrome: stable
44
apt:
55
sources:
66
- google-chrome
77
packages:
88
- google-chrome-stable fluxbox
99
sudo: required
1010
language: csharp
11-
mono: latest
12-
dotnet: 2.0.0
13-
install:
14-
- nvm install 8.0.0
15-
- nvm use 8.0.0
11+
mono: none
12+
dotnet: 2.2
13+
bundler_args: --retry 5
14+
before_install:
15+
- google-chrome-stable --headless --disable-gpu
16+
install:
17+
- nvm install 8.14.0
18+
- nvm use 8.14.0
19+
- npm install
1620
before_script:
1721
- "export DISPLAY=:99.0"
1822
- "sh -e /etc/init.d/xvfb start"
1923
- sleep 3
2024
- fluxbox > /dev/null 2>&1 &
2125
script:
22-
- cd eform-client && npm install
26+
- dotnet restore -v q eFormAPI/eFormAPI.sln
27+
- dotnet build eFormAPI/eFormAPI.sln
28+
- dotnet test -v n eFormAPI/eFormAPI.Web.Tests/eFormAPI.Web.Tests.csproj
29+
- dotnet test -v n eFormAPI/eFormAPI.Web.Integration.Tests/eFormAPI.Web.Integration.Tests.csproj
30+
- cd eform-client && npm install
31+
- npm start &
32+
- sleep 30
33+
- dotnet run --project ../eFormAPI/eFormAPI.Web/eFormAPI.Web.csproj &
34+
- sleep 10
35+
- npm run testheadless
36+
- dotnet run --project ../eFormAPI/eFormAPI.Web/eFormAPI.Web.csproj &
37+
- sleep 30
38+
- npm run testheadless2
2339
after_success:
2440
- echo dotnet test and npm test succeeded
2541
after_faliure:

README.md

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
11
# eform-angular-frontend
2-
C# Build Status:
3-
![C# build status](https://microtingas2017.visualstudio.com/_apis/public/build/definitions/5f551ab2-01ab-4204-8efa-06be93328bc1/4/badge)
2+
build status
3+
[![Build Status](https://travis-ci.org/microting/eform-angular-frontend.svg?branch=netcore)](https://travis-ci.org/microting/eform-angular-frontend)
44

5-
Angular 2 build status
6-
![Angular2 status](https://microtingas2017.visualstudio.com/_apis/public/build/definitions/5f551ab2-01ab-4204-8efa-06be93328bc1/5/badge)
7-
8-
Node Dependencies
9-
![Node Dependencies](https://david-dm.org/microting/eform-angular-frontend/eform-client.svg)
10-
11-
An Angular2 Frontend for integrating with the Microting eForm API v1.
5+
An Angular (6.1.10) Frontend for integrating with the Microting eForm API v1.
126

137
## Support Platforms
148

15-
- .NET Framework 4.5+
16-
- Windows 7 SP1
17-
- MS SQL 2008 R2
9+
| OS | .Net Standard 2.0 | NET Framework 4.6.1 | MS SQL 2016+ | MySQL/MariaDB |
10+
| ------------- |:-----:|:-----:|:-----:|:-----:|
11+
| OSX 10.14.2 | X | | X | X |
12+
| Windows 10 | X | X | X | X |
13+
| Windows Server 2016 | X| X | X | X |
14+
| Ubuntu 18.04 | X | | X | X |
15+
| Ubuntu 16.04 | X | | X | X |
1816

1917
## Get access token
2018

docs/Linux/install.md

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
# eFrom installation script
2+
3+
## Preparing
4+
5+
Recommended distributive - __Ubuntu 18.04__
6+
7+
### Swapfile
8+
9+
If you have 1Gb and less RAM on server/PC, you need to configure swap on system
10+
11+
Run __cat__ to check does your system have a swap file
12+
13+
```bash
14+
cat /proc/swaps
15+
```
16+
17+
If no swap file or partition is available - you can create swapfile with commands below
18+
19+
```bash
20+
sudo fallocate -l 4G /swapfile
21+
sudo chmod 600 /swapfile
22+
sudo mkswap /swapfile
23+
sudo swapon /swapfile
24+
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
25+
```
26+
27+
### Create non-root user
28+
29+
Script should be launched via Non-root user via sudo.
30+
31+
Exec adduser to create new user in system
32+
33+
```bash
34+
adduser eformuser
35+
```
36+
37+
Give sudo privileges to user
38+
39+
```bash
40+
usermod -aG sudo eformuser
41+
```
42+
43+
logout and login to created user
44+
45+
if you are in root, you can run __su__ to login as new user
46+
47+
```bash
48+
su - eformuser
49+
```
50+
51+
### Downloading script
52+
53+
Use wget to download script
54+
55+
```bash
56+
wget https://raw.githubusercontent.com/microting/eform-angular-frontend/netcore/install.sh
57+
```
58+
59+
Make script executable
60+
61+
```bash
62+
sudo chmod +x install.sh
63+
```
64+
65+
## Running script
66+
67+
Launch script with command
68+
69+
```bash
70+
sudo ./install.sh
71+
```
72+
73+
You should see this window:
74+
![Install](main_script_window.png "Install")
75+
76+
Configuration wizard ask you a 4 parameters to setup
77+
78+
* Username
79+
* Non-root username who launched that script
80+
(used for building app at your home directory)
81+
* Hostname
82+
* Hostname that NGINX should use as route to webapp
83+
* Leave blank for localhost path
84+
* __Example__: myeform.com
85+
* Launch environment:
86+
* Which launching environment should use dotnet
87+
* __Available values__: _Development_, _Production_
88+
* __Default value__: _Production_
89+
* Leave default value if you plan to work only with eForm dashboard
90+
* Port
91+
* Defines on which port application will be available
92+
* __Default value__: 80
93+
94+
## Installation process
95+
96+
All installation process is automated, after installation eFrom application will be available on host and port that you specified in configuration
97+
98+
## Error solving
99+
100+
If app is not launched or something missing - check __errlog__ file for more info about installation process

docs/Linux/main_script_window.png

18.9 KB
Loading
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)