Skip to content

Commit 6918a54

Browse files
committed
upgrade project
1 parent e24e9b6 commit 6918a54

File tree

14 files changed

+2860
-2204
lines changed

14 files changed

+2860
-2204
lines changed

.github/workflows/docker_compose.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ jobs:
2121
- name: Create private.pem
2222
run: cp keys/private.pem.example keys/private.pem
2323
- name: Build docker images
24-
run: docker-compose build
24+
run: docker compose build
2525
- name: Run docker images
26-
run: docker-compose up -d
26+
run: docker compose up -d
2727
- name: Run tests
28-
run: docker exec -t tester npm test
28+
run: docker exec -t wimm-apis-tester npm run test
2929
- name: Clean up
3030
if: success() || failure()
31-
run: docker-compose down --rmi all -v --remove-orphans
31+
run: docker compose down --rmi all -v --remove-orphans

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[submodule "disk"]
22
path = disk
3-
url = https://github.com/unusualcodeorg/wimm-disk.git
3+
url = https://github.com/fifocode/wimm-disk.git

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Here we are getting our node as Base image
2-
FROM node:20.11.0
2+
FROM node:lts
33

44
# create user in the docker image
55
USER node

Dockerfile.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Here we are getting our node as Base image
2-
FROM node:20.11.0
2+
FROM node:lts
33

44
# create user in the docker image
55
USER node

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# NestJS Backend Architecture Project
22

3-
[![Docker Compose CI](https://github.com/unusualcodeorg/wimm-node-app/actions/workflows/docker_compose.yml/badge.svg)](https://github.com/unusualcodeorg/wimm-node-app/actions/workflows/docker_compose.yml)
3+
[![Docker Compose CI](https://github.com/fifocode/wimm-node-app/actions/workflows/docker_compose.yml/badge.svg)](https://github.com/fifocode/wimm-node-app/actions/workflows/docker_compose.yml)
44

55
## WhereIsMyMotivation
66

@@ -49,7 +49,7 @@ Using this app can bring a little bit of happiness and energy to live an inspire
4949
## Android App using this backend
5050
![Screenshot-Light](.resources/documentations/assets/display-light.png)
5151

52-
The Android App using this backend is also open-sourced. You can find the project here: [Modern Android Development - WhereIsMyMotivation](https://github.com/unusualcodeorg/wimm-android-app)
52+
The Android App using this backend is also open-sourced. You can find the project here: [Modern Android Development - WhereIsMyMotivation](https://github.com/fifocode/wimm-android-app)
5353

5454
## Request-Response Flow
5555

@@ -61,7 +61,7 @@ vscode is the recommended editor - dark theme
6161
### Get the repo
6262
```bash
6363
# clone repository recursively
64-
git clone https://github.com/unusualcodeorg/wimm-node-app.git --recursive
64+
git clone https://github.com/fifocode/wimm-apis.git --recursive
6565
```
6666

6767
### Install libraries
@@ -80,7 +80,7 @@ docker-compose up --build
8080

8181
### Run Tests
8282
```bash
83-
docker exec -t tester npm run test:cov
83+
docker exec -t wimm-apis-tester npm run test:cov
8484
```
8585
If having any issue
8686
- Make sure 3000 port is not occupied else change PORT in **.env** file.
@@ -130,15 +130,15 @@ $ npm run test:cov
130130
## Minimalistic version of this project
131131
If you want to use plain Express.js to create the same project explore the Minimalistic version of this project
132132

133-
[Minimalistic Backend Development - WhereIsMyMotivation](https://github.com/unusualcodeorg/wimm-node-app-minimalistic)
133+
[Minimalistic Backend Development - WhereIsMyMotivation](https://github.com/fifocode/wimm-apis-minimalistic)
134134

135135
## Find this project useful ? :heart:
136136
* Support it by clicking the :star: button on the upper right of this page. :v:
137137

138-
## More on YouTube channel - Unusual Code
139-
Subscribe to the YouTube channel `UnusualCode` for understanding the concepts used in this project:
138+
## More on YouTube channel - fifocode
139+
Subscribe to the YouTube channel `fifocode` for understanding the concepts used in this project:
140140

141-
[![YouTube](https://img.shields.io/badge/YouTube-Subscribe-red?style=for-the-badge&logo=youtube&logoColor=white)](https://www.youtube.com/@unusualcode)
141+
[![YouTube](https://img.shields.io/badge/YouTube-Subscribe-red?style=for-the-badge&logo=youtube&logoColor=white)](https://www.youtube.com/@fifocode)
142142

143143
## Contribution
144144
Please feel free to fork it and open a PR.

docker-compose.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ services:
77
context: .
88
# This specifies the Dockerfile in your current project directory as the file
99
dockerfile: Dockerfile.test
10-
image: tester
11-
container_name: tester
10+
image: wimm-apis-tester
11+
container_name: wimm-apis-tester
1212
env_file: .env.test
1313
depends_on:
1414
- mongo
@@ -21,8 +21,8 @@ services:
2121
context: .
2222
# This specifies the Dockerfile in your current project directory as the file
2323
dockerfile: Dockerfile
24-
image: app
25-
container_name: app
24+
image: wimm-apis-app
25+
container_name: wimm-apis-app
2626
# This defines the restart policy. The default is no,
2727
# but we have set the container to restart unless it is stopped.
2828
restart: unless-stopped
@@ -36,8 +36,8 @@ services:
3636

3737
mongo:
3838
# To create this service, Compose will pull the mongo
39-
image: mongo:7.0.4
40-
container_name: mongo
39+
image: mongo:8.0.9
40+
container_name: wimm-apis-mongo
4141
restart: unless-stopped
4242
# This tells Compose that we would like to add environment variables
4343
# from a file called .env, located in our build context.
@@ -62,8 +62,8 @@ services:
6262
- dbdata:/data/db
6363

6464
redis:
65-
image: redis:7.2.3
66-
container_name: redis
65+
image: redis:8.0.0
66+
container_name: wimm-apis-redis
6767
restart: unless-stopped
6868
env_file: .env
6969
ports:

0 commit comments

Comments
 (0)