-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Crud Empleados Frontend y Backend | ||
|
||
## Descripcion: | ||
### El proyecto trata de mostrar una tabla en la cual apareceran información de los empleados(Nombre, Apellido , etc) se podrán editar los datos y eliminar a los Empleados. | ||
### La finalidad de este proyecto es aprender a conectar una base de datos a una aplicación web, hacer peticiones a la base de datos mediante una api rest, poder mandar peticiones a la base de datos, | ||
### Este proyecto esta hecho con React y Tailwind de parte del Frontend, y por parte del Backend NodeJS(express, mysql2) y MySql. | ||
|
||
|
||
## **Dependencias** | ||
- ### React | ||
- ### Tailwind | ||
- ### Express | ||
- ### Nodemon | ||
- ### mysql2 | ||
|
||
|
||
|
||
--- | ||
|
||
## Backend | ||
### Descripcion | ||
### 📁 **src/** Contiene el archivo principal app.js y la conexion a la base de datos. | ||
### 📁 **server/** contiene /src y package.json desde aqui debe ejectuar estos dos comandos, el primero instalara las dependencias, el segundo ejectura el servidor | ||
```javascript | ||
npm install | ||
npm run dev | ||
``` | ||
|
||
## Frontend | ||
|
||
```javascript | ||
npm install | ||
npm run dev | ||
``` |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
-- CREAR BASE DE DATOS EMPLEADOS | ||
CREATE DATABASE EmppleadosApi; | ||
|
||
--CREAR TABLA DE EMPLEADOS | ||
CREATE TABLE Empleados( | ||
ID INTEGER PRIMARY KEY AUTO_INCREMENT, | ||
NOMBRE VARCHAR(255) NOT NULL, | ||
APELLIDO VARCHAR(255) NOT NULL, | ||
ESTATUS BOOLEAN NOT NULL, | ||
PUESTO VARCHAR(255) NOT NULL, | ||
SUELDO INTEGER NOT NULL, | ||
FECHA_NACIMIENTO DATE NOT NULL | ||
); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.