Git Product home page Git Product logo

crud-mysql-php-angular's Introduction

CRUD-MySQL-PHP-Angular

CRUD para MySQL usando Angular y PHP

  1. Crear la base de datos usando el archivo pruebas_db.sql

  2. Los archivos PHP los pones dentro de una carpeta llamada api en el directorio de tu servidor

  3. Crea un nuevo proyecto de angular abriendo una terminal y escribe la siguiente linea:

ng new NombreProyecto

  1. Abre un editor de texto para esto yo recomiendo Visual Studio Code

  2. Abre el proyecto en VSCode y muestra la terminal interna

view->terminal

  1. Ejecuta la siguiente linea en la terminal interna para poder visualizar el proyecto en el navegador

ng serve

En el navegador entra a http://localhost:4200

  1. En la terminal interna ejecuta la siguiente linea para crear un servicio para el proyecto

ng g s Nombre_del_Servicio
ó
ng generate service Nombre_del_Servicio

puedes usar el archivo usuarios.service.ts como referencia

  1. Importa los modulos necesarios en app.module.ts

  2. Crea el comportamiento de la aplicacion en app.component.ts

  3. Modifica como mostrar la informacion en app.component.html

Guarda todos los cambios y visuliza el navegador

crud-mysql-php-angular's People

Contributors

xcheko51x avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.