Skip to content

mq022002/looker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

123 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Local Instance Instructions

System Requirements

  1. Clone this repository using the following command, or if you are working with a downloaded .zip of the source code, skip this step:
git clone https://github.com/mq022002/Looker.git
  1. Run the following bash script to install dependencies and build the application source code in runnable JavaScript:
sh setup.sh
  1. Set up your .env. There is a file in functions/ called .env.template that provides what you will need.

  2. Hardcode the API Key into the extension-looker/api/ functions. Reason being, the Visual Studio Code extension is not able to resolve environment variables and it has been something that I have not been able to figure out.

  3. Boot up a local development instance of Firebase Functions emulator using the following command:

npm run serve
  • Alternatively, you can also set the API_ENV vairable in the extension-looker/utils/ getBaseApiUrl function to production to use Firebase endpoints.
  1. Once you have your functions running (these need to be running, or publicly exposed in production), you can boot up the Visual Studio Extension in local. Navigate to extension-looker/src/extension.ts and click F5.

  1. Once you are in the testing window for the VS Code extension, open the folder LookerTesting. You should see the files contained within inside of the file tree.

  2. Create and activate a virtual environment using the following command applicable to your system:

# Linux
sudo apt-get install python3-venv    # If needed
python3 -m venv .venv
source .venv/bin/activate

# macOS
python3 -m venv .venv
source .venv/bin/activate

# Windows
py -3 -m venv .venv
.venv\scripts\activate
  1. Install requirements using the following command, ensuring your virtual environment is installed with (.venv) prepending your CLI:
pip install -r requirements.txt
  1. Use CTRL + SHIFT + P to access the commands associated with this extension. All are prepended with Looker: so you can type that in to find them fast.

About

AI-Powered Code Security

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published