- Check for an existing
.gitignorefile in the project directory
ls -a| component { | |
| boolean function onRequestStart( required string targetPage ) { | |
| var headers = getHttpRequestData().headers; | |
| var origin = ''; | |
| var PC = getpagecontext().getresponse(); | |
| // Find the Origin of the request | |
| if( structKeyExists( headers, 'Origin' ) ) { |
| const character = { | |
| name: 'Latisha', | |
| isMoving: true, | |
| }; | |
| const myCharacter = { | |
| name: 'Latisha', | |
| move: true, | |
| }; |
| if(character.isMoving) { | |
| } | |
| if(myCharacter.move) { | |
| } |
| { | |
| status: 0 | |
| } |
In JavaScript projects, I used to use dotenv so that I could put local environment variables in a .env file for local development. But dotenv requires you to add code to your project.
With direnv, you can put local env vars in a .envrc file and those env vars are loaded automatically in the shell.
For these steps, it is assummed that you have installed Git Bash on Windows. I also use VSCode as my editor.
c:\tools to put the direnv.exe file and add it to the Windows PATH