Category : node.js

I have 3 microservices: react app, nodejs app 1, nodejs app 2 the react app opens well (localhost:3000) in the browser. When I submit a post request from react to nodejs app1, I get the data back properly. But when I post data from nodejs app1 to nodejs app2 – I get the error Error: ..

Read more

Node Version that my docker image has = v10.15.3 NPM version = 6.4.1 Below is my package.json, a list of all dependencies for the application. { }, "dependencies": { "@akveo/ng2-completer": "^9.0.1", "@angular/animations": "^10.0.10", "@angular/cdk": "10.1.1", "@angular/common": "^10.0.10", "@angular/compiler": "^10.0.10", "@angular/core": "^10.0.10", "@angular/forms": "^10.0.10", "@angular/google-maps": "^10.1.3", "@angular/material": "^11.1.1", "@angular/platform-browser": "^10.0.10", "@angular/platform-browser-dynamic": "^10.0.10", "@angular/router": "^10.0.10", "@asymmetrik/ngx-leaflet": "3.0.1", ..

Read more

I try to run Docker. I created file server.js: ‘use strict’; const express = require(‘express’); // константы const port = 8080; const host = ‘0.0.0.0’; // приложение const app = express(); app.get(‘/’, (req, res) => { res.send(‘Hello World’); }); app.listen(port, host); console.log(`running on http://${host}:${port}`); I created package.json and init package.lock by npm install { “name”: ..

Read more

As I’m introducing authentication for my MongoDB instance in Docker, I ran into problems which are probably related to the way agenda.js tries to connect to MongoDB, as the connection string invokes successful logs for mongoose connecting to the DB, therefore I assume the string should be valid. Everything worked until I changed the connection ..

Read more

Here is the entirety of my puppeteer controller: import { Readability } from ‘@mozilla/readability’; const puppeteer = require(‘puppeteer-extra’); const StealthPlugin = require(‘puppeteer-extra-plugin-stealth’); const jsdom = require(‘jsdom’); const { JSDOM } = jsdom; const summarize = require(‘summarize’); const keyword_extractor = require(‘keyword-extractor’); const amex = require(‘../../csv/AMEX.json’); const nasdaq = require(‘../../csv/NASDAQ.json’); const nyse = require(‘../../csv/NYSE.json’); const cryptotickers = ..

Read more

I set up my project on ASP.NET Core 5 and Angular 10. I try to publish app with Docker Here is the github of this project (branch "prod") https://github.com/TheLamed/Khrystyna-Kvyk Here is my dockerfile: FROM mcr.microsoft.com/dotnet/aspnet:5.0 AS base WORKDIR /app EXPOSE 80 EXPOSE 443 FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build WORKDIR /src COPY ["KhrystynaKvyk.Web.csproj", "KhrystynaKvyk.Web/"] COPY . "KhrystynaKvyk.Web/" ..

Read more