If you don't have homebrew installed - get homebrew here
Then run: brew install elasticsearch
Update the elasticsearch configuration file in /usr/local/etc/elasticsearch/elasticsearch.yml
.
First, Install this | |
npm i eslint @babel/core @babel/eslint-parser @babel/preset-env -D | |
Second, Create a .babelrc file | |
{ | |
"presets": [ | |
["@babel/preset-env", | |
{ | |
"shippedProposals": true |
Since it's been days, I am guessing this was solved. I am just adding my two cents here for future readers. | |
The problem lies with the JwtModule and the JwtStrategy instantiation. They aren't configured properly. | |
You need to pass in the algorithms you'd use for signing and verifying the tokens, along with the keys. | |
To verify whether the tokens are actually getting generated with the RS256 algo, check the header in the token at https://jwt.io/. | |
It would probably show HS256, and since your code didn't use the correct algorithm to sign the token. | |
And it fails while token gets verified using the public key. | |
To generate signed tokens properly with the RSA key pair: |
Working behind a proxy Windows Env. | |
The following steps can be used for those working behind proxies that require authentication. All these methods will store your password in plain text, so use caution when doing this. | |
Setting the proxy for Nudget | |
Install the nuget.exe CLI by downloading it from nuget.org, saving that .exe file to a suitable folder, and adding that folder to your PATH environment variable, so that you can run nuget command from terminal. | |
nuget.exe config -set http_proxy=http://my.proxy.address:port | |
nuget.exe config -set http_proxy.user=mydomain\myUserName | |
nuget.exe config -set http_proxy.password=mySuperSecretPassword | |
-Copy files to web directory ex: app.js and folders | |
-copy packages.json to webdirectory | |
-npm install | |
-change permision to all files and folders to only owner read | |
pase this on top of your app.js file | |
if (typeof(PhusionPassenger) !== 'undefined') { | |
PhusionPassenger.configure({ autoInstall: false }); | |
} |
If you don't have homebrew installed - get homebrew here
Then run: brew install elasticsearch
Update the elasticsearch configuration file in /usr/local/etc/elasticsearch/elasticsearch.yml
.
This is a fork of original gist https://gist.github.com/nrollr/3f57fc15ded7dddddcc4e82fe137b58e, with slight changes on pointing to 5.7 version branch, instead of 8 (latest default of MySQL in Hombrew).
This procedure explains how to install MySQL using Homebrew on macOS (Sierra 10.12 and up)
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
<?php | |
use Illuminate\Database\Schema\Blueprint; | |
use Illuminate\Database\Migrations\Migration; | |
class CreateUsersTable extends Migration | |
{ | |
/** | |
* Migration type to syncronized with multiple/single database connection | |
*/ |