This file contains 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
// The snippet below achieves in a Node backend what | |
// "historyApiFallback: true" flag achieves on a webpack-dev-server environment. | |
// By redirecting all requests to index.html, the routing contained in the frontend app | |
// takes care of redirecting to the right place | |
const viewRouter = require('./routes/view'); | |
app.use('/',viewRouter); | |
router.route('/*') | |
.get((req,res)=>res.sendFile(path.resolve(__dirname, '../dist', 'index.html'))); |
This file contains 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
# Find all ocurrences of filter and map and style the output a bit | |
find src/ -type f -name '*.js' -exec awk '/filter\(|map\(/{printf "%-100s%-5s%-100s\n", FILENAME, FNR, $0}' {} + |
This file contains 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
{ | |
"name": "client", | |
"version": "4.1.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"start": "webpack-dev-server --mode development", | |
"prebuild": "npm run cleanbuild", | |
"build": "webpack --mode production", | |
"postbuild": " cpr dist ../../PublishFiles/Web -o", |
This file contains 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
#TO USE: Run the following: | |
# sudo curl -fsSkL http://gist.githubusercontent.com/blaedj/11387166/raw/352c44464e0db63afb9f375b887942f5676bfcda/setup.sh | sh | |
#install git | |
sudo apt-get install git | |
#install zsh | |
apt-get install zsh | |
chsh -s /bin/zsh |