Skip to content

Commit 611da8a

Browse files
test
0 parents  commit 611da8a

File tree

107 files changed

+44973
-0
lines changed

Some content is hidden

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

107 files changed

+44973
-0
lines changed

.bablerc

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
"presets": ["react-app"],
3+
"plugins": [
4+
"@babel/plugin-transform-modules-commonjs"
5+
]
6+
}

.env

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
NODE_ENV=development
2+
REACT_APP_API_BASE_URL=https://onboarding.cloudnowtech.net/core/api/v1/hrm
3+

.env.default

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
REACT_APP_API_BASE_URL=https://onboarding.cloudnowtech.net/core/api/v1/hrm

.env.development

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
REACT_APP_API_BASE_URL=https://testing.onboarding.cloudnowtech.net/core/api/v1/hrm

.env.production

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
NODE_ENV=production
2+
3+
REACT_APP_API_BASE_URL=https://onboarding.cloudnowtech.com/core/api/v1/hrm

.env.sandbox

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
REACT_APP_API_BASE_URL=https://demo.onboarding.cloudnowtech.com/core/api/v1/hrm

.env.test

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
NODE_ENV=test
2+
3+
REACT_APP_API_BASE_URL=https://testing.onboarding.cloudnowtech.net/core/api/v1/hrm
4+

.gitignore

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# production
12+
/build
13+
14+
# misc
15+
.DS_Store
16+
.env.local
17+
.env.development.local
18+
.env.test.local
19+
.env.production.local
20+
21+
npm-debug.log*
22+
yarn-debug.log*
23+
yarn-error.log*

README.md

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
2+
3+
## Available Scripts
4+
5+
In the project directory, you can run:
6+
7+
### `npm start`
8+
9+
Runs the app in the development mode.<br>
10+
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
11+
12+
The page will reload if you make edits.<br>
13+
You will also see any lint errors in the console.
14+
15+
### `npm test`
16+
17+
Launches the test runner in the interactive watch mode.<br>
18+
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
19+
20+
### `npm run build`
21+
22+
Builds the app for production to the `build` folder.<br>
23+
It correctly bundles React in production mode and optimizes the build for the best performance.
24+
25+
The build is minified and the filenames include the hashes.<br>
26+
Your app is ready to be deployed!
27+
28+
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
29+
30+
### `npm run eject`
31+
32+
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
33+
34+
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
35+
36+
Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
37+
38+
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
39+
40+
## Learn More
41+
42+
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
43+
44+
To learn React, check out the [React documentation](https://reactjs.org/).
45+
46+
### Code Splitting
47+
48+
This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting
49+
50+
### Analyzing the Bundle Size
51+
52+
This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size
53+
54+
### Making a Progressive Web App
55+
56+
This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app
57+
58+
### Advanced Configuration
59+
60+
This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration
61+
62+
### Deployment
63+
64+
This section has moved here: https://facebook.github.io/create-react-app/docs/deployment
65+
66+
### `npm run build` fails to minify
67+
68+
This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify

default

+121
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
##
2+
# You should look at the following URL's in order to grasp a solid understanding
3+
# of Nginx configuration files in order to fully unleash the power of Nginx.
4+
# http://wiki.nginx.org/Pitfalls
5+
# http://wiki.nginx.org/QuickStart
6+
# http://wiki.nginx.org/Configuration
7+
#
8+
# Generally, you will want to move this file somewhere, and start with a clean
9+
# file but keep this around for reference. Or just disable in sites-enabled.
10+
#
11+
# Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.
12+
##
13+
14+
# Default server configuration
15+
#
16+
server {
17+
listen 80 default_server;
18+
listen [::]:80 default_server;
19+
20+
return 301 https://onboarding.cloudnowtech.com$request_uri;
21+
}
22+
server
23+
{
24+
25+
# SSL configuration
26+
#
27+
# listen 443 ssl default_server;
28+
# listen [::]:443 ssl default_server;
29+
#
30+
# Note: You should disable gzip for SSL traffic.
31+
# See: https://bugs.debian.org/773332
32+
#
33+
# Read up on ssl_ciphers to ensure a secure configuration.
34+
# See: https://bugs.debian.org/765782
35+
#
36+
# Self signed certs generated by the ssl-cert package
37+
# Don't use them in a production server!
38+
#
39+
# include snippets/snakeoil.conf;
40+
41+
root /var/www/html;
42+
43+
# Add index.php to the list if you are using PHP
44+
index index.html index.htm index.nginx-debian.html;
45+
46+
server_name onboarding.cloudnowtech.com;
47+
48+
location / {
49+
# First attempt to serve request as file, then
50+
# as directory, then fall back to displaying a 404.
51+
try_files $uri $uri/ =404;
52+
}
53+
54+
location ^~ /core/api/v1/hrm {
55+
proxy_set_header Host $host;
56+
proxy_set_header X-Real-IP $remote_addr;
57+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
58+
proxy_set_header X-Forwarded-Proto $scheme;
59+
proxy_pass http://192.168.100.2:9084;
60+
proxy_read_timeout 90;
61+
proxy_redirect http://192.168.100.2:9084 https://onboarding.cloudnowtech.com;
62+
}
63+
64+
65+
location ^~ /core/api/v1/rmt {
66+
proxy_set_header Host $host;
67+
proxy_set_header X-Real-IP $remote_addr;
68+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
69+
proxy_set_header X-Forwarded-Proto $scheme;
70+
proxy_pass http://192.168.100.2:9085;
71+
proxy_read_timeout 90;
72+
proxy_redirect http://192.168.100.2:9085 https://onboarding.cloudnowtech.com;
73+
}
74+
75+
76+
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
77+
#
78+
#location ~ \.php$ {
79+
# include snippets/fastcgi-php.conf;
80+
#
81+
# # With php7.0-cgi alone:
82+
# fastcgi_pass 127.0.0.1:9000;
83+
# # With php7.0-fpm:
84+
# fastcgi_pass unix:/run/php/php7.0-fpm.sock;
85+
#}
86+
87+
# deny access to .htaccess files, if Apache's document root
88+
# concurs with nginx's one
89+
#
90+
#location ~ /\.ht {
91+
# deny all;
92+
#}
93+
94+
listen [::]:443 ssl ipv6only=on; # managed by Certbot
95+
listen 443 ssl; # managed by Certbot
96+
ssl_certificate /etc/letsencrypt/live/onboarding.cloudnowtech.com/fullchain.pem; # managed by Certbot
97+
ssl_certificate_key /etc/letsencrypt/live/onboarding.cloudnowtech.com/privkey.pem; # managed by Certbot
98+
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
99+
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
100+
101+
}
102+
103+
104+
# Virtual Host configuration for example.com
105+
#
106+
# You can move that to a different file under sites-available/ and symlink that
107+
# to sites-enabled/ to enable it.
108+
#
109+
#server {
110+
# listen 80;
111+
# listen [::]:80;
112+
#
113+
# server_name example.com;
114+
#
115+
# root /var/www/example.com;
116+
# index index.html;
117+
#
118+
# location / {
119+
# try_files $uri $uri/ =404;
120+
# }
121+
#}

0 commit comments

Comments
 (0)