This file contains hidden or 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
#!/bin/bash | |
# Save the script: Save the code above into a file named bench-stop.sh in your Frappe bench directory. | |
# Make it executable: Open your terminal, navigate to your bench directory, and run the command chmod +x bench-stop.sh. | |
# Run the script: Whenever you need to stop the bench processes, simply execute the script from your bench directory by running ./bench-stop.sh | |
# Stop all processes started by "bench start" |
This file contains hidden or 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 run this code you need to install the following dependencies: | |
// npm install @google/genai mime | |
// npm install -D @types/node | |
import express from 'express'; | |
import { | |
GoogleGenAI, | |
} from '@google/genai'; | |
const app = express(); | |
app.use(express.json()); |