Agregando requerimiento: Endpoint-stack #172
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Práctica 4 -- Microsoft Launch X
Contribución Open Source
4.1 Agregamos dependencias eslint con el comando
npm install eslint --save -dev
4.1.1 Modificamos el archivo package.json:
Agregando correctamente la ruta para "test"
4.1.2 Configurar eslint con el comando
npm init @eslint/config
4.1.3 Agregar reglas que se ocuparan en el proyecto dentro del archivo ".eslint.js":
5.1 Agregamos las pruebas necesarias y las hacemos fallar:
Prueba de filtrado por Stack
Prueba para el controlador
5.2 Agregamos el código funcional para hacer pasar nuestras pruebas
Método estático para filtrar por Stack
agregado al archivo ExplorerService.jsMétodo estático para hacer pasar la prueba del controlador
agregado al archivo ExplorerController.jslocalhost:3000/v1/explorers/stack/:elixir
localhost:3000/v1/explorers/stack/:elm
localhost:3000/v1/explorers/stack/:stack
localhost:3000/v1/explorers/stack/elm
[{"name":"Woopa3","githubUsername":"ajolonauta3","score":3,"mission":"node","stacks":["elixir","groovy","reasonML"]},{"name":"Woopa5","githubUsername":"ajolonauta5","score":5,"mission":"node","stacks":["javascript","elixir","elm"]},{"name":"Woopa9","githubUsername":"ajolonauta9","score":9,"mission":"java","stacks":["javascript","elixir","groovy","reasonML","elm"]},{"name":"Woopa10","githubUsername":"ajolonauta10","score":10,"mission":"java","stacks":["javascript","elixir","groovy","reasonML","elm"]},{"name":"Woopa11","githubUsername":"ajolonauta11","score":11,"mission":"node","stacks":["javascript","elixir","groovy","reasonML","elm"]},{"name":"Woopa12","githubUsername":"ajolonauta12","score":12,"mission":"node","stacks":["javascript","elixir","groovy","reasonML","elm"]},{"name":"Woopa13","githubUsername":"ajolonauta13","score":13,"mission":"node","stacks":["javascript","elixir","groovy","reasonML","elm"]},{"name":"Woopa14","githubUsername":"ajolonauta14","score":14,"mission":"node","stacks":["javascript","elixir","groovy","reasonML","elm"]},{"name":"Woopa15","githubUsername":"ajolonauta15","score":15,"mission":"node","stacks":["javascript","elixir","groovy","reasonML","elm"]}]
Open Source Contribution Finished !!! ⚡
Saludos MC, Estoy aprendiendo mucho. Gracias.