Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
a2874ee
Add in memory version of command bus not handling commands
aliondev Jun 8, 2020
762b037
WIP
aliondev Jun 10, 2020
71a896f
wip: subscribe to symbol
rsaladocid Jun 10, 2020
2d3309c
Add frontend backoffice skeleton
davidmatas Jun 11, 2020
795e8d6
Added home partially
davidmatas Jun 11, 2020
3c9c97f
Refactor command handlers information
rsaladocid Jun 12, 2020
784ab21
Command handler to create course
aliondev Jun 12, 2020
3da155b
Merge branch 'master' into backoffice-frontend
Fortiz2305 Jun 12, 2020
187f631
Merge branch 'add_dependencies_docker' into backoffice-frontend
Fortiz2305 Jun 12, 2020
ba63a67
Makefile: Add support to start backoffice frontend application
Fortiz2305 Jun 14, 2020
2543df4
Refactor CourseCreator test to use command handler
ivanportillo Jun 18, 2020
3ad53bc
Fix InMemoryCommandBus test
ivanportillo Jun 18, 2020
a4605d2
Merge pull request #65 from CodelyTV/part_four_command_bus
ivanportillo Jun 18, 2020
a69946d
Add query bus (WIP)
ivanportillo Jun 18, 2020
420be6e
Added courses template
davidmatas Jun 19, 2020
4d254a1
WIP
davidmatas Jun 22, 2020
69f44d6
Implement InMemoryQueryBus
ivanportillo Jun 24, 2020
d6b7729
Refactor FindCourseCounter to use query bus
ivanportillo Jun 24, 2020
cb657c6
Merge branch 'master' into backoffice-frontend
Fortiz2305 Jul 3, 2020
68da68f
Use localhost as default mongo host
Fortiz2305 Jul 3, 2020
b5e43ff
Instantitate CoursesCounterFinder for backoffice frontend
davidmatas Jul 3, 2020
cbeeead
Delete collections after all tests
davidmatas Jul 3, 2020
297eb3d
Eliminate 0 case from controller
davidmatas Jul 3, 2020
c4d63ed
Add courses folder in pages
davidmatas Jul 5, 2020
17f757f
Add create course form
davidmatas Jul 5, 2020
3f8ca2a
Use localhost as mongo host by default
Fortiz2305 Jul 7, 2020
bda1674
Add courses navigation
Fortiz2305 Jul 10, 2020
80cb15f
Add lint step and activate eoline lint rule
ivanportillo Jul 10, 2020
9c16582
Fix linter issues
ivanportillo Jul 10, 2020
85e6769
Merge pull request #66 from CodelyTV/part_four_query_bus
ivanportillo Jul 10, 2020
fced599
Fix build
Fortiz2305 Jul 11, 2020
331b8dc
Use command and query bus in backoffice frontend app
Fortiz2305 Jul 11, 2020
ab59e53
Initialize CouserCounter collection if it's empty
vilasmaciel Jul 14, 2020
6d07785
Merge pull request #68 from CodelyTV/backoffice-frontend-use-command-…
Fortiz2305 Jul 16, 2020
bf5944e
Merge pull request #69 from CodelyTV/part_four_seed
vilasmaciel Aug 28, 2020
8c01052
Add notifications module with application service and domain event su…
aliondev Sep 4, 2020
d164cc1
Add DI and fake email sender
aliondev Sep 4, 2020
0a26b7d
Validate courses request
davidmatas Sep 15, 2020
c388346
Add increment courses counter subscriber to backoffice frontend
Fortiz2305 Sep 16, 2020
8a6455e
Bump required nodejs version to 12.x
vilasmaciel Sep 16, 2020
aae93ba
Refactor backoffice fronted dependency inyection
vilasmaciel Sep 16, 2020
2bdb81f
Update dependencies
vilasmaciel Sep 16, 2020
972a618
Create Retention BC from the notifications module of the Mooc BC
aliondev Sep 16, 2020
5ef7312
Course e2e test
davidmatas Sep 18, 2020
9ee5023
Add default baseUrl
davidmatas Sep 18, 2020
7be2cbb
Add cypress plugin to clean/seed database
davidmatas Sep 19, 2020
e98713d
Add script for launching the server before the cypress run
vilasmaciel Sep 21, 2020
11d0d56
Fix asynchronous test at the cypress backoffice tests
vilasmaciel Sep 25, 2020
202d49c
Cypress root modification
davidmatas Oct 2, 2020
da23a4b
Avoid Cypress/Jest types colision
davidmatas Oct 2, 2020
bc7dee7
Fine tune
davidmatas Oct 2, 2020
fc97497
Move specific TS config for cypress to app folder tests
davidmatas Oct 18, 2020
5bd79e3
Include more e2e tests
davidmatas Oct 18, 2020
9f90731
Change folder names
davidmatas Oct 22, 2020
24ee389
Merge remote-tracking branch 'upstream/master' into part_four
davidmatas Nov 21, 2020
6d27b8e
Remove unneded file
davidmatas Nov 21, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
run: |
npm install
npm run build --if-present
npm run lint
npm test
env:
CI: true
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ dist/
logs/
src/Contexts/Mooc/Courses/infrastructure/persistence/courses.*
data
test-results.xml
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v12.18.3
14 changes: 10 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
.PHONY = default deps build test start clean start-database
.PHONY = default deps build test start-mooc-backend clean start-database start-backoffice-frontend

# Shell to use for running scripts
SHELL := $(shell which bash)
IMAGE_NAME := codelytv/typescript-ddd-skeleton
SERVICE_NAME := app
MOOC_APP_NAME := mooc
BACKOFFICE_APP_NAME := backoffice

# Test if the dependencies we need to run this Makefile are installed
DOCKER := $(shell command -v docker)
Expand All @@ -28,9 +30,13 @@ build:
test: build
docker-compose run --rm $(SERVICE_NAME) bash -c 'npm run build && npm run test'

# Start the application
start: build
docker-compose up $(SERVICE_NAME) && docker-compose down
# Start mooc backend app
start-mooc-backend: build
docker-compose up $(MOOC_APP_NAME)-backend && docker-compose down

# Start backoffice frontend app
start-backoffice-frontend: build
docker-compose up $(BACKOFFICE_APP_NAME)-frontend && docker-compose down

# Clean containers
clean:
Expand Down
8 changes: 8 additions & 0 deletions cypress.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"video": false,
"screenshotOnRunFailure": false,
"testFiles": "**/*.cypress.*",
"integrationFolder": "tests/apps",
"fixturesFolder": "tests/utils/cypress/fixtures",
"pluginsFile": "tests/utils/cypress/plugins/index.ts"
}
29 changes: 21 additions & 8 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,31 @@
version: '3.8'

x-app-service: &default-app
build: .
command: ''
environment:
- MONGO_URL=mongodb://mongo:27017/dev
depends_on:
- mongo
volumes:
- .:/code:delegated
- node_modules:/code/node_modules:delegated

services:
app:
build: .
<<: *default-app

mooc-backend:
<<: *default-app
command: bash -c "npm run build && npm run start"
ports:
- 3000:3000
environment:
- MONGO_URL=mongodb://mongo:27017/dev
depends_on:
- mongo
volumes:
- .:/code:delegated
- node_modules:/code/node_modules:delegated

backoffice-frontend:
<<: *default-app
command: bash -c "npm run build && npm run start:backoffice:frontend"
ports:
- 8032:8032

mongo:
image: mongo:3.4.6
Expand Down
Loading