Dependencias:
npm i -D babel-cli babel-preset-env nodemonConfigurar babel para su correcto funcionamiento en el package.json:
Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt
If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a
I will be using the root user, but would suggest creating a new user
| package com.tu-dominio.pushapp; <------ CAMBIAR!!!! | |
| import io.flutter.app.FlutterApplication; | |
| import io.flutter.plugin.common.PluginRegistry; | |
| import io.flutter.plugin.common.PluginRegistry.PluginRegistrantCallback; | |
| import io.flutter.plugins.GeneratedPluginRegistrant; | |
| import io.flutter.plugins.firebasemessaging.FlutterFirebaseMessagingService; | |
| // Nota, esta linea la agregue | |
| import io.flutter.plugins.firebasemessaging.FirebaseMessagingPlugin; |
| appBar: PreferredSize( | |
| preferredSize: Size.fromHeight(0), | |
| child:AppBar( | |
| // backgroundColor: Colors.teal[600], | |
| elevation: 0, | |
| ), | |
| ), |
| 'use strict' | |
| var axios = require('axios'); | |
| function SendMessageFirebase(){ | |
| const obj={ | |
| to:"dC-uy3_Cs2E:APA91bFqHJ6hYpnBjgbUXQCNmJAfiNdb5J0U4A-uJYcOD1K7sbthe0Am9TP4zByBqfSjllWc0NeeLVfyWlAdzYYC2dtLNJ2nuzkKx73d73vw7Edmxsn7aSHTw5nuGMT8C9S1IBuW6K83", |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Star Rating System</title> | |
| <meta name="viewport" content="width=device-width"> | |
| <style> | |
| .star{ | |
| color: goldenrod; | |
| font-size: 2.0rem; |
| ## docker-compose para correr wordpress con una base de datos en mysql | |
| ## by PeladoNerd https://youtu.be/eoFxMaeB9H4 | |
| version: '3.1' | |
| services: | |
| wordpress: | |
| image: wordpress:php7.1-apache | |
| ports: |
| function parseJwt (token) { | |
| var base64Url = token.split('.')[1]; | |
| var base64 = base64Url.replace('-', '+').replace('_', '/'); | |
| return JSON.parse(window.atob(base64)); | |
| }; |