- Download all files from the gist to the target folder, from where you want to make all files make avaiable for download
- Install the 'express' & 'ejs'
- start the server.js with node
- visit link: http://localhost:3000/
mongo
If
mongo
is not recognized as an internal or external command, operable program or batch file, then do the followings from this blog
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
import React from 'react' | |
import './App.css' | |
function App() { | |
const [isOpnnedAlready, setIsOpnnedAlready] = React.useState(false) | |
const channel = React.useMemo(() => new BroadcastChannel('couldBeAnything'), []) | |
React.useEffect(() => { | |
channel.postMessage({ |
- Add brekpoint in TypeScript file to inspect via vscode debugger and Debugger for Chrome
- Install
Debugger for Chrome
extension in vscode F9
to add breakpoint- Set
"sourceMap": true,
intsconfig.json
- Go to
Run
>Start Debugging
- Select environment
Chrome
(it won't appear with chrome extention) - In
launch.json
file seturl
to specefic port where developemnt server is running e.g. (http://localhost:3000)
- Install
- Make sure
webRoot
is correct
$ ssh [email protected]
ssh -i "react-counter-app.pem" [email protected]
$ logout
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
require("http").createServer(function(request, response){ | |
response.writeHeader(200, {"Content-Type": "text/plain"}); | |
response.write("Hello World!"); | |
response.end(); | |
}).listen(8080); |
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
const express = require('express') | |
const imageToBase64 = require('image-to-base64') | |
const app = express() | |
const fs = require('fs') | |
const Axios = require('axios') | |
const sharp = require('sharp') | |
app.use(express.json()) | |
app.use((r, res, next) => { |