Skip to content

Commit cf992a5

Browse files
feat: Dockerize demo projects (#377)
Co-authored-by: Mrugesh Mohapatra <noreply@mrugesh.dev>
1 parent 5eaeec9 commit cf992a5

File tree

192 files changed

+74746
-11198
lines changed

Some content is hidden

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

192 files changed

+74746
-11198
lines changed

.eslintignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
# Ignore minified libraries
22
apps/voting-app/public/*.min.js
33
# Ignore bundles
4-
apps/build-a-pinterest-clone/public/bundle.js
5-
apps/p2p-video-chat-application/public/bundle.js
4+
apps/**/public/bundle.js
65
# Ignore test runner files?
76
apps/**/assertion-analyser.js
87
apps/**/test-runner.js

.github/workflows/node-ci.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Node.js CI
22
on:
33
pull_request:
44
branches:
5-
- master
5+
- main
66

77
jobs:
88
ci:
@@ -11,7 +11,7 @@ jobs:
1111

1212
strategy:
1313
matrix:
14-
node-version: [16]
14+
node-version: [18]
1515
fail-fast: false
1616

1717
steps:
@@ -23,14 +23,22 @@ jobs:
2323
with:
2424
node-version: ${{ matrix.node-version }}
2525

26-
- name: Start database
27-
uses: supercharge/mongodb-github-action@d26215f71b2ce60420a2a3776a25893d11a65f85 # v1.9.0
28-
2926
- name: Install Dependencies
3027
run: npm ci
3128

3229
- name: Lint Files
3330
run: npm run lint
3431

32+
- name: Create .env File For CI Builds
33+
run: cp sample.env .env
34+
35+
- name: Start Projects
36+
run: |
37+
npm run build -- --no-cache
38+
npm start
39+
40+
- name: Sleep For 15 Seconds
41+
run: sleep 15
42+
3543
- name: Run Tests
36-
run: npm run test-local-or-ci
44+
run: npm run test

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ node_modules
55
apps/stock-price-checker-proxy/cache/
66
apps/twitch-proxy/.data/
77
apps/twitch-proxy/.logs/
8+
Caddyfile

apps/25--5-clock/.dockerignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.env
2+
.git
3+
.gitignore
4+
.dockerignore
5+
node_modules
6+
Dockerfile
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"presets": [
3-
["@babel/env", { "targets": "> 0.25%, not dead" }],
3+
["@babel/preset-env", { "targets": "> 0.25%, not dead" }],
44
"@babel/preset-react"
55
]
66
}

apps/25--5-clock/client/index.jsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,11 @@ class Timer extends React.Component {
257257
<div className='author'>
258258
{' '}
259259
Designed and Coded by <br />
260-
<a href='https://goo.gl/6NNLMG' target='_blank'>
260+
<a
261+
href='https://www.freecodecamp.org/no-stack-dub-sack'
262+
target='_blank'
263+
rel='noreferrer'
264+
>
261265
Peter Weinberg
262266
</a>
263267
</div>
@@ -267,7 +271,7 @@ class Timer extends React.Component {
267271
ref={audio => {
268272
this.audioBeep = audio;
269273
}}
270-
src='https://raw.githubusercontent.com/freeCodeCamp/cdn/master/build/testable-projects-fcc/audio/BeepSound.wav'
274+
src='https://cdn.freecodecamp.org/testable-projects-fcc/audio/BeepSound.wav'
271275
/>
272276
</div>
273277
);

0 commit comments

Comments
 (0)