(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
const functions = require('firebase-functions'); | |
const express = require('express'); | |
const path = require('path'); | |
// The Firebase Admin SDK to access the Firebase Realtime Database. | |
const admin = require('firebase-admin'); | |
admin.initializeApp() | |
/* This function may break now*/ | |
// exports.onUserCreated = functions.firestore.collection("users").onCreate((change, context)=>{ | |
// return console.log(change); |
'use strict'; | |
const e = React.createElement; | |
class MediumPost extends React.Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
error: null, | |
isLoaded: false, |
using Redis.OM.Modeling; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace WatchLogger.Models | |
{ | |
[Document(StorageType = StorageType.Json, Prefixes = new[] { "WLog" })] |
using Microsoft.Extensions.DependencyInjection; | |
using Microsoft.Extensions.Hosting; | |
using Microsoft.Extensions.Logging; | |
using Redis.OM; | |
using WatchLogger.Helpers; | |
namespace WatchLogger.HostedService | |
{ | |
public class IndexCreationService : BackgroundService |
using Microsoft.AspNetCore.Builder; | |
using Microsoft.Extensions.DependencyInjection; | |
using Redis.OM; | |
using System.Runtime.InteropServices; | |
using WatchLogger.Exceptions; | |
using WatchLogger.Helpers; | |
using WatchLogger.HostedService; | |
namespace WatchLogger | |
{ |
using Microsoft.AspNetCore.Builder; | |
using Microsoft.AspNetCore.Http; | |
using Microsoft.Extensions.DependencyInjection; | |
using Microsoft.Extensions.Logging; | |
using Microsoft.IO; | |
using Redis.OM; | |
using System.Runtime.InteropServices; | |
using WatchLogger.Exceptions; | |
using WatchLogger.Helpers; | |
using WatchLogger.HostedService; |
using Microsoft.AspNetCore.Http; | |
using Microsoft.AspNetCore.Mvc; | |
using Microsoft.VisualBasic; | |
using Redis.OM; | |
using Redis.OM.Searching; | |
using System; | |
using WatchLogger.Helpers; | |
using WatchLogger.Models; | |
namespace WatchLogger.Controllers |
using WatchLogger; | |
var builder = WebApplication.CreateBuilder(args); | |
builder.Services.AddEndpointsApiExplorer(); | |
builder.Services.AddSwaggerGen(); | |
builder.Services.AddWatchLoggerServices(opt => | |
{ | |
opt.SetExternalDbConnString = builder.Configuration["RedisConnectionString"]; | |
}); |
using AutoMapper; | |
using Microsoft.AspNetCore.Mvc; | |
using Redis.OM; | |
using Redis.OM.Searching; | |
using WatchLogger.Models; | |
namespace WatchLogger.Helpers | |
{ | |
public class RedisStackHelper |