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
// set-up a connection between the client and the server | |
var socket = io.connect(); | |
// let's assume that the client page, once rendered, knows what room it wants to join | |
var room = "abc123"; | |
socket.on('connect', function() { | |
// Connected, let's sign-up for to receive messages for this room | |
socket.emit('room', room); | |
}); |
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
################################################################### | |
######## Project ready to work with any IDE ######## | |
################################################################### | |
# Create a SFDX project from terminal | |
sfdx force:project:create --projectname myproject --manifest | |
# Position yourself on the project folder | |
cd myprojectname |
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
#################################################################### | |
######## From your folder project run the following command ######## | |
#################################################################### | |
# navigate to aura folder | |
cd force-app/main/default/aura | |
# Create a Lightning component | |
sfdx force:lightning:component:create --type aura -n myAuraComponent |
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
1. Export existing app’s variables to config.txt | |
heroku config -s -a existing-heroku-app > config.txt | |
2. Review and push to another app | |
cat config.txt | tr '\n' ' ' | xargs heroku config:set -a new-heroku-app |