Te damos el resultado a este inconveniente, al menos eso deseamos. Si continuas con dudas puedes escribirlo en el apartado de comentarios y con placer te ayudaremos
Ejemplo 1: medios de aplicaciones crud
Create,Read,Update,Delete
CRUD is an acronym for the four basic typesofSQL commands: Create,Read,Update,Delete. Most applications have some kind of CRUD functionality,and we can assume that every programmer had to deal with CRUD at somepoint. A CRUD application is one that uses forms to get dataintoandoutof a database.
Ejemplo 2: aplicación de crudo en pila media
// Imported required packages
const express =require('express'),
path =require('path'),
bodyParser =require('body-parser'),
cors =require('cors'),
mongoose =require('mongoose');// MongoDB Databse url
var mongoDatabase ='mongodb://localhost:27017/employeeDetails';// Created express server
const app = express();
mongoose.Promise =global.Promise;// Connect Mongodb Database
mongoose.connect(mongoDatabase, useNewUrlParser: true ).then(()=> console.log('Database is connected') ,
err => console.log('There is problem while connecting database '+ err)
);// All the express routes
const employeeRoutes =require('../Routes/Employee.route');// Conver incoming data to JSON format
app.use(bodyParser.json());// Enabled CORS
app.use(cors());// Setup for the server port number
const port = process.env.PORT ||4000;// Routes Configuration
app.use('/employees', employeeRoutes);// Staring our express server
const server = app.listen(port,function()
console.log('Server Lisening On Port : '+ port);
);
Valoraciones y reseñas
Ten en cuenta dar difusión a este escrito si si solucionó tu problema.
¡Haz clic para puntuar esta entrada!
(Votos: 0 Promedio: 0)