jatamayo / mean_api Goto Github PK
View Code? Open in Web Editor NEWMEAN stack
MEAN stack
---- MEAN API ---- /*_____________________________________________________________________________________________*/ /*********** Arrancar un nuevo proyecto de node.js ************/ MEAN_API/ npm init --yes /*_____________________________________________________________________________________________*/ /*********** Instalar dependencias ************/ MEAN_API/ npm install express MEAN_API/ npm install nodemon -D /* esta dependencia reinicia nuestro servidor automaticamente -D significa que no es una dependencia, es un devDependency */ MEAN_API/ npm install morgan /* Muestra en consola que es lo que el usuario esta pidiendo*/ MEAN_API/ npm install mongoose /* modulo requerido por express para conectarse y modelar datos */ MEAN_API/ npm install cors /* module para comunicacion de servidores */ /*_____________________________________________________________________________________________*/ /************ Generador de cliente angualr ************/ MEAN_API/ npm install -g @angular/cli MEAN_API/ ng new frontend /* frotend es un nombre de carpeta, tu puedes darle el nombre que quieras */ /*_____________________________________________________________________________________________*/ /************ AngularJS generar Componentes, modelos y Servicios ************/ Crear 3 carpetas nuevas para manejar nuestro cliente - MEAN_API/frontend/src/app/Componentes - MEAN_API/frontend/src/app/models - MEAN_API/frontend/src/app/services MEAN_API/frontend/src/app/components/ ng generate component componentName MEAN_API/frontend/src/app/models/ ng generate class className MEAN_API/frontend/src/app/services/ ng generate service serviceName MEAN_API/frontend/src/app/components/ ng generate component employees MEAN_API/frontend/src/app/models/ ng generate class employee MEAN_API/frontend/src/app/services/ ng generate service employee /*_____________________________________________________________________________________________*/ /************ MAIN API FILES ************/ controllers/employee.controller.js models/employee.js routes/employee.routes.js /*_____________________________________________________________________________________________*/ /************ MAIN FrontEnd FILES ************/ MEAN_API/frontend/src/app/app.component.html MEAN_API/frontend/src/app/app.module.ts MEAN_API/frontend/src/app/components/employees/employee.component.html MEAN_API/frontend/src/app/components/employees/employees.components.ts MEAN_API/frontend/src/app/models/employee.ts MEAN_API/frontend/src/app/services/employee.service.spec.ts MEAN_API/frontend/src/app/services/employee.service.ts /*_____________________________________________________________________________________________*/ /************ Ejecutar servidores */ /* Servidor de angular, el servidor de angular se ejecuta en el puerto 4200 */ MEAN_API/frontend/ ng service /* Servidor de node , el servidor de node se ejecuta en el puerto 3000 */ MEAN_API/ npm run dev
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.