Skip to content

Commit

Permalink
Agregando Json-server
Browse files Browse the repository at this point in the history
  • Loading branch information
mxnmike authored and Miguel Garcia Topete committed Oct 1, 2022
1 parent 9ae9058 commit eaadaba
Show file tree
Hide file tree
Showing 15 changed files with 3,042 additions and 35 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VITE_API_URL = http://localhost:3000/clientes
3 changes: 2 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
"arrowParens": "avoid",
"jsxSingleQuote": true,
"jsxIgnoreLineBreak": true,
"singleAttributePerLine": true
"singleAttributePerLine": true,
"bracketSpacing": true
}
39 changes: 39 additions & 0 deletions db.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"clientes": [
{
"id": 1,
"nombre": "Juan",
"telefono": 102013313,
"email": "[email protected]",
"empresa": "Codigo Con Juan"
},
{
"id": 2,
"nombre": "Karen",
"telefono": 138198313,
"email": "[email protected]",
"empresa": "Codigo Con Juan"
},
{
"id": 3,
"nombre": "Josue",
"telefono": 31983913,
"email": "[email protected]",
"empresa": "Codigo Con Juan"
},
{
"id": 4,
"nombre": "Miguel",
"telefono": 6193978127,
"email": "[email protected]",
"empresa": "Codigo Con Juan"
},
{
"id": 5,
"nombre": "Pedro",
"telefono": 1398198938,
"email": "[email protected]",
"empresa": "Codigo Con Juan"
}
]
}
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React</title>
<title>CRM - React Router DOM - Vite - Tailwind CSS</title>
</head>
<body>
<body class="min-h-screen bg-gray-100">
<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>
</body>
Expand Down
Loading

0 comments on commit eaadaba

Please sign in to comment.