1 hour later…
05:40
@matt I don't know about Feeds exactly. I think it doesn't even do anything, just posts in chat which uses the native embedding/onebox that chat has. But there is an endpoint to which you can upload images, if you wish - the same one used for for the "upload..." button:
https://chat.stackoverflow.com/upload/image
OakBot uploads images. Maybe you can ask the author how it does it. He hangs around in the C# and the Java room. I think mostly on weekdays. But is usually pretty responsive if people have questions about OakBot.
it looks like in java when a library is imported the methods just become available in the scope, so when i come across a method call its like which library is that in
at least in javascript, when something is imported its built off a base object, so its easy to find where the definition is
2 hours later…
@RyanBarillos Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
9 hours later…
18:29
@user7886229, well i came up with the following, note its doing everything as root at the moment, if it all works it can be looked into starting as a different user
# docker build . -f james.docker.file -t james-docker-image # docker run -di -p 443:443 -p 2222:22 --name james-docker james-docker-image FROM node RUN echo "root:node" | chpasswd RUN apt update && apt install -y openssh-server RUN sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config RUN printf "%s\n" \ "#!/bin/bash" \ "set -e" \ "whoami" \ "echo" \ "echo 'starting ssh'" \ "service ssh start" \ "echo" \ "echo" \ "node james.js" \ "/bin/bash" \ > 'start.sh'
19:32
Hello! I'm starting a full-stack JS web app. I'm used to Ruby on Rails + React as a stack, but for this project I'm using Express for the backend. Can I please ask a couple quick newb questions?
First, I know that for client-facing TypeScript, I need to compile the project down with something like Webpack. Does server-side JS benefit from compilation as well?
Second, for an Express project, is starting the server with a command like
node index.js
/ts-node index.ts
good enough? Or are there tools I should consider using for starting the server?
Finally, I am creating the web app as an npm mono repo with two directories, one for the Express server and one for the client-side JS. What is the typical configuration so that the server can serve the compiled and packaged frontend code? I know this isn't a quick answer, but I'm guessing there are also robust tools for this kind of job, so I'd appreciate just being pointed in the right direction!
« first day (5054 days earlier) ← previous day next day → last day (116 days later) »