This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var app = new Vue({ | |
el: "#primervue", | |
data: { | |
titulo: "Primeros pasos con VueJS y el buen @fredyfx" | |
} | |
}); | |
var app2 = new Vue({ | |
el: "#segundovue", | |
data: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script src="~/lib/vue/vue.js"></script> | |
<script src="~/lib/vue-resource/vue-resource.js"></script> | |
</head> | |
<body> | |
<p> | |
Index! | |
</p> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Threading.Tasks; | |
using Microsoft.AspNetCore.Builder; | |
using Microsoft.AspNetCore.Hosting; | |
using Microsoft.AspNetCore.Http; | |
using Microsoft.EntityFrameworkCore; | |
using Microsoft.Extensions.DependencyInjection; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var app = new Vue({ | |
el: "#primervue", | |
data: { | |
titulo: "Primeros pasos con VueJS y el buen @fredyfx" | |
} | |
}); | |
var app2 = new Vue({ | |
el: "#segundovue", | |
data: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script src="~/lib/vue/vue.js"></script> | |
<script src="~/lib/vue-resource/vue-resource.js"></script> | |
</head> | |
<body> | |
<p> | |
Index! | |
</p> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Directorios de Dependencias | |
var dependencias = { | |
"vue": { | |
"dist/*": "" | |
}, | |
"vue-resource": { | |
"dist/*": "" | |
} | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <binding Clean='clean, minify, scripts' /> | |
/* | |
This file in the main entry point for defining Gulp tasks and using Gulp plugins. | |
Click here to learn more. http://go.microsoft.com/fwlink/?LinkId=518007 | |
*/ | |
var gulp = require('gulp'); | |
var uglify = require('gulp-uglify'); | |
var concat = require('gulp-concat'); | |
var rimraf = require("rimraf"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using System.Linq; | |
using System.Threading.Tasks; | |
using AdvientoCSharpDic2018.Models; | |
using Microsoft.AspNetCore.Mvc; | |
using Microsoft.EntityFrameworkCore; | |
namespace AdvientoCSharpDic2018.Controllers | |
{ | |
[Produces("application/json")] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.EntityFrameworkCore; | |
using AdvientoCSharpDic2018.Models; | |
namespace AdvientoCSharpDic2018 | |
{ | |
public class AdvientoContext : DbContext | |
{ | |
public AdvientoContext(DbContextOptions<AdvientoContext> options) : base(options) | |
{ | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void ConfigureServices(IServiceCollection services) | |
{ | |
services.AddDbContext<AdvientoContext>(config=>{ | |
config.UseNpgsql("Server=127.0.0.1; Port=5432; Database=Adviento2018; User Id=postgres; Password= root;"); | |
}); | |
services.AddMvc(); | |
} |