Skip to content

Commit c2b404b

Browse files
committed
0 parents  commit c2b404b

9 files changed

+3092
-0
lines changed

.gitignore

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# https://github.com/github/gitignore/blob/master/Node.gitignore
2+
# Logs
3+
logs
4+
*.log
5+
npm-debug.log*
6+
7+
*.swp
8+
9+
# Runtime data
10+
pids
11+
*.pid
12+
*.seed
13+
*.pid.lock
14+
15+
# Directory for instrumented libs generated by jscoverage/JSCover
16+
lib-cov
17+
18+
# Coverage directory used by tools like istanbul
19+
coverage
20+
21+
# nyc test coverage
22+
.nyc_output
23+
24+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
25+
.grunt
26+
27+
# node-waf configuration
28+
.lock-wscript
29+
30+
# Compiled binary addons (http://nodejs.org/api/addons.html)
31+
build/Release
32+
33+
# Dependency directories
34+
node_modules
35+
jspm_packages
36+
37+
# Optional npm cache directory
38+
.npm
39+
40+
# Optional eslint cache
41+
.eslintcache
42+
43+
# Optional REPL history
44+
.node_repl_history
45+
46+
# Output of 'npm pack'
47+
*.tgz
48+
.idea/
49+
50+
# Sublime Text project files
51+
*.sublime-project
52+
*.sublime-workspace
53+
54+
*.env
55+
56+
# Docker local cache
57+
.cache.tgz
58+
.yarn-cache.tgz
59+
60+
# Vagrant
61+
Vagrantfile
62+
.vagrant/

.prettierrc

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"semi": false,
3+
"singleQuote": true
4+
}

README.md

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Create Boilerplate app script
2+
3+
This script clones the default branch of the repo, asks the user a few questions and then modifies the files among other things, to accomodate the code to the user preferences. The questions include:
4+
5+
* Project name
6+
* Database engine
7+
* Git remote URL where the new project will live
8+
9+
The script also initializes a new git repository and creates random passwords and secrets for the database and secure cookie seed.
10+
11+
## Usage
12+
13+
End users use this script like this:
14+
15+
`npx github:clevertech/boilerplate#create-boilerplate-app my-new-app`
16+
17+
Where `my-new-app` is the name of the directory where your new project will be stored.
18+
19+
## Modifying the script
20+
21+
* Clone the repo and checkout the `create-boilerplate-app` branch.
22+
* Run `yarn` to install its dependencies.
23+
* To run the script use `node index.js test-dir`
24+
25+
From now on you can improve the script by changing its source code.

helm/api.yml

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
deployment:
2+
healthcheck: /healthz
3+
image:
4+
pullPolicy: IfNotPresent
5+
repository: 412241670359.dkr.ecr.us-east-1.amazonaws.com/clevertech/boilerplate-api-development
6+
tag: placeholder
7+
initialDelaySeconds: 10
8+
minReadySeconds: 1
9+
envFrom:
10+
- secretRef:
11+
name: app-credentials
12+
env:
13+
- name: NODE_ENV
14+
value: development
15+
- name: DEBUG
16+
value: ""
17+
- name: PORT
18+
value: "8080"
19+
hpa:
20+
cpuUtilization:
21+
targetPercentage: 50
22+
maxReplicas: 1
23+
minReplicas: 1
24+
ingress:
25+
annotations:
26+
kubernetes.io/ingress.class: nginx
27+
kubernetes.io/tls-acme: "true"
28+
hosts:
29+
- name: cleverbuild.biz
30+
rules:
31+
- path: /
32+
subdomain: boilerplate-api-dev-randomvalue.
33+
replicaCount: 1
34+
resources:
35+
limits:
36+
cpu: 300m
37+
memory: 300Mi
38+
requests:
39+
cpu: 100m
40+
memory: 100Mi
41+
secrets:
42+
- name: app-credentials
43+
type: Opaque
44+
service:
45+
externalPort: 80
46+
internalPort: 8080
47+
name: api
48+
type: ""

helm/frontend.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
deployment:
2+
healthcheck: /healthz
3+
image:
4+
pullPolicy: IfNotPresent
5+
repository: 412241670359.dkr.ecr.us-east-1.amazonaws.com/clevertech/boilerplate-frontend-development
6+
tag: placeholder
7+
initialDelaySeconds: 10
8+
minReadySeconds: 1
9+
hpa:
10+
cpuUtilization:
11+
targetPercentage: 50
12+
maxReplicas: 1
13+
minReplicas: 1
14+
ingress:
15+
annotations:
16+
kubernetes.io/ingress.class: nginx
17+
kubernetes.io/tls-acme: "true"
18+
hosts:
19+
- name: cleverbuild.biz
20+
rules:
21+
- path: /
22+
subdomain: boilerplate-dev-randomvalue.
23+
replicaCount: 1
24+
resources:
25+
limits:
26+
cpu: 300m
27+
memory: 300Mi
28+
requests:
29+
cpu: 100m
30+
memory: 100Mi
31+
service:
32+
externalPort: 80
33+
internalPort: 80
34+
name: frontend
35+
type: ""

0 commit comments

Comments
 (0)