Skip to content

Commit 093b55b

Browse files
committed
Changes for user things
1 parent cfb600f commit 093b55b

29 files changed

+1541
-1779
lines changed

.github/workflows/development.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,23 @@ jobs:
1818
uses: actions/checkout@v2
1919

2020
- name: Download code
21-
run: git clone --branch development https://github.com/aitorjs/lb4-base/
21+
run: git clone --branch development https://github.com/aitorjs/lb4-base/ lb-base
2222

2323
- name: Create env file
2424
run: |
25-
cd lb4-base/
25+
cd lb-base/
2626
touch .env
2727
echo "ADMIN_EMAIL='root@email.com'" >> .env
2828
echo "ADMIN_PASS='passpass1'" >> .env
2929
echo "JWT_ACCESS_SECRET='myjwts3cr3t'" >> .env
3030
3131
- name: Up test envirotment
3232
run: |
33-
cd lb4-base/
33+
cd lb-base/
3434
docker network create back
3535
docker-compose up -d
3636
3737
- name: Testing
3838
run: |
39-
cd lb4-base/
40-
docker exec lb4-base_api_1 npm run test
39+
cd lb-base/
40+
docker exec lb-base_api npm run test

.github/workflows/main.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,23 @@ jobs:
1818
uses: actions/checkout@v2
1919

2020
- name: Download code
21-
run: git clone https://github.com/aitorjs/lb4-base
21+
run: git clone https://github.com/aitorjs/lb4-base lb-base
2222

2323
- name: Create env file
2424
run: |
25-
cd lb4-base/
25+
cd lb-base/
2626
touch .env
2727
echo "ADMIN_EMAIL='root@email.com'" >> .env
2828
echo "ADMIN_PASS='passpass1'" >> .env
2929
echo "JWT_ACCESS_SECRET='myjwts3cr3t'" >> .env
3030
3131
- name: Up test envirotment
3232
run: |
33-
cd lb4-base/
33+
cd lb-base/
3434
docker network create back
3535
docker-compose up -d
3636
3737
- name: Testing
3838
run: |
39-
cd lb4-base/
40-
docker exec lb4-base_api_1 npm run test
39+
cd lb-base/
40+
docker exec lb-base_api npm run test

CHANGELOG

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# CHANGELOG
2+
## v0.0.3 (08/02/2022)
3+
- Mainly dependencies updated.
4+
- Tested with authentication-jwt component. Its use is rejected because swagger-ui always put the [lock](https://github.com/loopbackio/loopback-next/blob/master/extensions/authentication-jwt/src/jwt-authentication-component.ts#L49).
5+
26
## v0.0.2 (04/09/2021)
37
- Basic administration of users with JWT, groups (firstAdmin, admin, user, member), acceptance tests, docker, CI and envirtoments (prod, dev, test).
48

DEVELOPING.md

Lines changed: 0 additions & 36 deletions
This file was deleted.

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
1-
# lb4-base
1+
# lb-base
22
## Use
33

44
- Install docker and docker-compose on your machine.
55
- Create .env file.
66
- Open the envirotment you need: prod, dev, testing.
77
- Go to http://localhost:3000 on prod and dev.
88

9-
## Envirotments
9+
## Environments
1010
### Prod(uction).
11+
- docker network create back
1112
- npm run start:prod:docker
1213

1314
### Dev(elopment).
15+
- docker network create back
1416
- npm run start:dev:docker
1517

16-
### Testing. Functional tests
18+
### Testing. Functional tests.
19+
- docker network create back
1720
- npm run start:test:docker
1821

1922

@@ -34,7 +37,7 @@ By default, dependencies were installed when this application was generated.
3437
# Functional tests
3538

3639
- docker exec -it [API_CONTAINERID/ API_CONTAINERNAME] npm run test
37-
(docker exec -it lb4-base_api_1 npm run test)
40+
(docker exec -it lb-base_api npm run test)
3841

3942
Whenever dependencies in `package.json` are changed, run the following command:
4043

config/docker/dev/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ services:
99
- back
1010
restart: always
1111
tty: true
12-
container_name: lb4-base_mongo_1
12+
container_name: lb-base_mongo
1313

1414
api:
1515
build:
@@ -23,7 +23,7 @@ services:
2323
- back
2424
restart: always
2525
tty: true
26-
container_name: lb4-base_api_1
26+
container_name: lb-base_api
2727

2828
volumes:
2929
db_data:

config/docker/prod/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ services:
99
- back
1010
restart: always
1111
tty: true
12-
container_name: lb4-base_mongo_1
12+
container_name: lb-base_mongo
1313

1414
api:
1515
build:
@@ -23,7 +23,7 @@ services:
2323
- back
2424
restart: always
2525
tty: true
26-
container_name: lb4-base_api_1
26+
container_name: lb-base_api
2727

2828
volumes:
2929
db_data:

config/docker/test/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ services:
99
- back
1010
restart: always
1111
tty: true
12-
container_name: lb4-base_mongo_1
12+
container_name: lb-base_mongo
1313

1414
api:
1515
build:
@@ -23,7 +23,7 @@ services:
2323
- back
2424
restart: always
2525
tty: true
26-
container_name: lb4-base_api_1
26+
container_name: lb-base_api
2727

2828
volumes:
2929
db_data:

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ services:
99
- back
1010
restart: always
1111
tty: true
12-
container_name: lb4-base_mongo_1
12+
container_name: lb-base_mongo
1313

1414
api:
1515
build: ./
@@ -21,7 +21,7 @@ services:
2121
- back
2222
restart: always
2323
tty: true
24-
container_name: lb4-base_api_1
24+
container_name: lb-base_api
2525

2626
volumes:
2727
db_data:

0 commit comments

Comments
 (0)