- Install
@module-federation/nextjs-mf.
yarn add @module-federation/nextjs-mf- Add resolutions to
package.json:
"resolutions": {@module-federation/nextjs-mf.yarn add @module-federation/nextjs-mfpackage.json: "resolutions": {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
| // docs: https://nodejs.org/dist/latest-v10.x/docs/api/https.html#https_https_request_url_options_callback | |
| // all methods working, but post only with x-form-urlencoded. return promise with resolved object on line 64. | |
| // extra options parameters: json=[bool], params=[object] | |
| const querystring = require('querystring') | |
| const https = require('https') | |
| const http = require('http') | |
| const cleanObject = (object, filterKeys) => Object | |
| .keys(object) | |
| .reduce((acc, key) => { |
$ ssh [email protected]
$ mkdir test
$ cd test
| #! /bin/bash | |
| # ECHO COMMAND | |
| # echo Hello World! | |
| # VARIABLES | |
| # Uppercase by convention | |
| # Letters, numbers, underscores | |
| NAME="Bob" | |
| # echo "My name is $NAME" |
| import axios from 'axios' | |
| let mockingEnabled = false | |
| const mocks = {} | |
| export function addMock(url, data) { | |
| mocks[url] = data | |
| } |
A quick guide on how to setup Node.js development environment.
nvm allows installing several versions of Node.js to the same system. Sometimes applications require a certain versions of Node.js to work. Having the flexibility of using specific versions can help.