-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
179 changed files
with
1,656 additions
and
288 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,4 @@ coverage | |
.nyc_output | ||
index.html | ||
docs | ||
cypress |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
language: node_js | ||
node_js: | ||
- 15 | ||
- 14 | ||
- 12 | ||
services: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM node:15 | ||
|
||
# Create app directory | ||
WORKDIR /home/justalk/portfolio | ||
|
||
COPY package*.json ./ | ||
|
||
USER justalk | ||
|
||
RUN npm install | ||
|
||
COPY --chown=justalk:justalk . . | ||
|
||
EXPOSE 8080 | ||
RUN npm run server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"integrationFolder": "./tests/e2e", | ||
"video": false, | ||
"screenshotOnRunFailure": false | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
version: "3.8" | ||
services: | ||
mongodb: | ||
image: mongo:latest | ||
volumes: | ||
- mongodb_data_container:/data/db | ||
ports: | ||
- "27018:27018" | ||
command: mongod --port 27018 | ||
networks: | ||
- app-network | ||
app: | ||
container_name: portfolio | ||
restart: always | ||
build: . | ||
ports: | ||
- "8080:8080" | ||
command: bash -c "/usr/wait-for-it.sh --timeout=15 mongodb:27018 && npm run seed-docker && npm run build && npm run server-docker" | ||
depends_on: | ||
- mongodb | ||
links: | ||
- mongodb | ||
networks: | ||
- app-network | ||
|
||
networks: | ||
app-network: | ||
driver: bridge | ||
|
||
volumes: | ||
mongodb_data_container: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM node:15 | ||
|
||
# Create app directory | ||
WORKDIR /home/justalk/portfolio | ||
|
||
COPY package*.json ./ | ||
|
||
RUN npm install | ||
|
||
COPY . . | ||
|
||
EXPOSE 8080 | ||
|
||
COPY scripts/wait-for-it.sh /usr/wait-for-it.sh | ||
RUN chmod +x /usr/wait-for-it.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
NODE_ENV=development | ||
FOLDER=dev | ||
|
||
API_NAME=JUSTALK-SERVER | ||
HOST=localhost | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
NODE_ENV=development | ||
FOLDER=dev | ||
|
||
API_NAME=JUSTALK-SERVER | ||
HOST=172.27.0.3 | ||
PORT=8080 | ||
PROTOCOL=http | ||
|
||
DB_NAME=justalk | ||
DB_URI_DATA=mongodb://mongodb:27018/ | ||
DB_URI_LOG=mongodb://mongodb:27018/logs | ||
DB_USER_DATA= | ||
DB_PASS_DATA= | ||
DB_HOST_LOG=localhost | ||
DB_PORT_LOG=27017 | ||
DB_NAME_LOG=logs | ||
DB_USER_LOG= | ||
DB_PASS_LOG= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
NODE_ENV=production | ||
FOLDER=dev | ||
|
||
API_NAME=JUSTALK-SERVER | ||
HOST=localhost | ||
PORT=8080 | ||
PROTOCOL=http | ||
|
||
DB_NAME=justalk | ||
DB_URI_DATA=mongodb://localhost:27017/ | ||
DB_URI_LOG=mongodb://localhost:27017/logs | ||
DB_USER_DATA= | ||
DB_PASS_DATA= | ||
DB_HOST_LOG=localhost | ||
DB_PORT_LOG=27017 | ||
DB_NAME_LOG=logs | ||
DB_USER_LOG= | ||
DB_PASS_LOG= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.