Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
0bcd22d
Update Project
molro Jan 31, 2022
55444a9
Estructura del proyecto
molro Jan 31, 2022
513d798
Enlaces
molro Jan 31, 2022
240d691
Upd
molro Jan 31, 2022
90d3e69
Rutas creadas & Requirimientos en Readme
molro Feb 1, 2022
6ed1eb3
Updated Gitingore
molro Feb 1, 2022
8faa7a4
Endpoint Users finalizado (N1Ex1)
molro Feb 1, 2022
6fbce31
Nivell 1 - Exercise 2
molro Feb 2, 2022
87abc46
Update README.md
molro Feb 10, 2022
2bd9500
Update readme
molro Feb 10, 2022
791e695
Updrdm
molro Feb 10, 2022
86a40ba
Merge pull request #32 from molivaresr/sprint41
molro Feb 14, 2022
3895ab0
Update README.md
molro Feb 14, 2022
004a3a3
Update Package.json
molro Feb 14, 2022
97d97da
Merge branch 'sprint41' of https://github.com/molivaresr/nodeInitialD…
molro Feb 14, 2022
072ef4a
uploads
molro Feb 14, 2022
bbd0672
uploads
molro Feb 14, 2022
fc4b227
Merge pull request #33 from molivaresr/sprint41
molro Feb 14, 2022
6c248aa
Coffe Time
molro Feb 14, 2022
4d7ab39
EstructuraAPi y Server Creado
molro Feb 14, 2022
618dbf8
EstructuraFinal
molro Feb 14, 2022
3bd6511
Estructured 2.0
molro Feb 15, 2022
fc56255
CoffeTime 1702
molro Feb 17, 2022
88cb20d
conectando BD
molro Feb 17, 2022
d16fcd1
No avance
molro Feb 18, 2022
d836530
BD conectada
molro Feb 19, 2022
fa5989d
Probando rutas
molro Feb 20, 2022
36550d5
Solución POST
molro Feb 23, 2022
5048180
Post player !!!
molro Feb 23, 2022
f809614
player
molro Feb 26, 2022
f2c1267
getRanking is not working
molro Feb 27, 2022
6892f81
Ranking No funciona
molro Mar 2, 2022
c912caa
comentarios para ranking
molro Mar 2, 2022
3d6ae75
GetRanking
molro Mar 2, 2022
3542d0f
funciones terminadas
molro Mar 3, 2022
0af9598
Revisado y postman collection
molro Mar 10, 2022
a7724c8
Update Readme
molro Mar 10, 2022
89b10b3
Update Readme
molro Mar 10, 2022
603e670
Upd Readme
molro Mar 10, 2022
a2a385f
Upd
molro Mar 10, 2022
d487991
Update README.md
molro Mar 10, 2022
31fa0eb
Update README.md
molro Mar 10, 2022
9c4e40b
UpdReadme
molro Mar 10, 2022
17926c9
Merge branch 'sprint42' of https://github.com/molro/nodeInitialDemo i…
molro Mar 10, 2022
9792de4
UpdReadme
molro Mar 10, 2022
e73a699
UpdReadme
molro Mar 10, 2022
e9f5dc8
UpdReadme
molro Mar 10, 2022
ed844f4
UpdReadme
molro Mar 10, 2022
483852d
Update README.md
molro Mar 10, 2022
bf4da52
Update README.md
molro Mar 10, 2022
4bbe016
Update package.json
molro Mar 10, 2022
22d05bc
ruta fantasma finalizada
molro Mar 17, 2022
433660f
Delete README.md
molro May 2, 2022
048be54
Delete README.md
molro May 2, 2022
7870256
Delete README.md
molro May 2, 2022
cc92b9a
Delete README.md
molro May 2, 2022
9cfdedc
Delete README.md
molro May 2, 2022
b268e0e
Fixing details
molro May 6, 2022
f2bd21a
Update instrucciones
molro May 6, 2022
0e535d5
Config fixed
molro May 6, 2022
6987a41
Merge branch 'sprint42' of https://github.com/molro/nodeInitialDemo i…
molro May 6, 2022
89383f3
Delete .env
molro May 6, 2022
bc79e93
Update README.md
molro May 6, 2022
99f3f89
Update README.md
molro May 6, 2022
f0c0389
Final
molro May 6, 2022
56d5833
Correcciones
molro May 9, 2022
9046626
Merge branch 'sprint42' of https://github.com/molro/nodeInitialDemo i…
molro May 9, 2022
97349e7
Final
molro May 9, 2022
f267c17
Update README.md
molro May 9, 2022
cd313d1
Update README.md
molro May 9, 2022
0595881
Update README.md
molro May 9, 2022
78f7308
Update README.md
molro May 9, 2022
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
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
node_modules/

##MacOs
.DS_Store
.DS_Store
.env
11 changes: 4 additions & 7 deletions Enlaces.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
1. [Enlace Como crear un ToDO List (Ejemplo)](https://vegibit.com/node-js-todo-list-tutorial/)
2. [Enlace de app similar](https://www.youtube.com/watch?v=v2GKt39-LPA)
3. [Enlace de como usar Inquirer](https://www.digitalocean.com/community/tutorials/nodejs-interactive-command-line-prompts)
4. [Enlace Node Readline (Como crear interfaz de consola e interactuar con ella)](https://nodejs.org/dist/latest-v17.x/docs/api/readline.html)
5. [Enlace Node File System (Manejar archivos en local o en remoto)](https://nodejs.org/dist/latest-v17.x/docs/api/fs.html)
6. [Enlace Como crear una App de Consola (Sólo saqué la idea de organización)](https://medium.com/@maniakhitoccori/cómo-crear-una-aplicación-real-de-node-cli-con-node-db1338fa1d9b)

1. [Enlace estructura proyecto Node y Express ](https://medium.com/williambastidasblog/estructura-de-una-api-rest-con-nodejs-express-y-mongodb-cdd97637b18b)
2. [Validación de archivos](https://pharos.sh/cargue-la-gestion-de-archivos-en-node-js-con-express-y-multer/)
3. [Arquit ApiRest](https://juanda.gitbooks.io/webapps/content/api/arquitectura-api-rest.html)
4. [Secure Rest API Rest](https://www.toptal.com/nodejs/secure-rest-api-in-nodejs)
329 changes: 329 additions & 0 deletions Joc de Daus.postman_collection.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,329 @@
{
"info": {
"_postman_id": "19921c46-44e5-4436-b01b-b42776292d41",
"name": "Joc de Daus",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Post -> Crea un jugador",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"playerName\":\"HolaMundo\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8080/api/players",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"api",
"players"
]
}
},
"response": []
},
{
"name": "Post -> Crea un jugador anónimo",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"playerName\":\"HolaMundo\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8080/api/players",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"api",
"players"
]
}
},
"response": []
},
{
"name": "Put -> Modifica el nombre de un jugador",
"request": {
"method": "PUT",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"playerName\":\" \"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8080/api/players/3",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"api",
"players",
"3"
]
}
},
"response": []
},
{
"name": "Delete -> Elimina las jugadas de un jugador",
"request": {
"method": "DELETE",
"header": [],
"body": {
"mode": "raw",
"raw": "",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8080/api/players/8/games/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"api",
"players",
"8",
"games",
""
]
}
},
"response": []
},
{
"name": "Get -> Retorna las jugadas de un jugador",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": "",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8080/api/players/2/games",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"api",
"players",
"2",
"games"
]
}
},
"response": []
},
{
"name": "Post -> Crea una nueva jugada",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8080/api/players/2/games",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"api",
"players",
"2",
"games"
]
}
},
"response": []
},
{
"name": "Get -> Retorna listado de jugadores y % medio de éxito",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": "",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8080/api/players",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"api",
"players"
]
}
},
"response": []
},
{
"name": "Get -> Retorna el % de jugadas ganas total",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": "",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8080/api/players/ranking/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"api",
"players",
"ranking",
""
]
}
},
"response": []
},
{
"name": "Get -> Retorna el último jugador",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": "",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8080/api/players/ranking/looser",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"api",
"players",
"ranking",
"looser"
]
}
},
"response": []
},
{
"name": "Get -> Retorna el primer jugador",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "urlencoded",
"urlencoded": [
{
"key": "user",
"value": "Diego",
"type": "default"
}
]
},
"url": {
"raw": "http://localhost:8080/api/players/ranking/winner",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"api",
"players",
"ranking",
"winner"
]
}
},
"response": []
}
]
}
Loading