### Install Node Dependencies for Nylas React App Source: https://github.com/nylas/use-cases/blob/main/packages/read-emails/frontend/react/README.md Installs the necessary Node.js packages for the frontend sample application, including the Nylas React package. This command reads the 'package.json' file to manage project dependencies. ```bash npm install ``` -------------------------------- ### Install Java Dependencies with Gradle Source: https://github.com/nylas/use-cases/blob/main/packages/read-emails/backend/java/README.md These commands demonstrate how to install the necessary Java dependencies for the Nylas sample app using Gradle. The `build` task compiles the project and downloads required libraries, including the Nylas Java SDK. ```bash ./gradlew build ``` ```powershell gradlew.bat build ``` -------------------------------- ### Install Java Dependencies (Gradle) Source: https://github.com/nylas/use-cases/blob/main/packages/send-emails/backend/java/README.md These commands demonstrate how to install Java dependencies for the Nylas sample app using Gradle. It includes steps for both macOS/Unix and Windows environments, along with a permission fix for macOS. ```bash # MacOS / Unix ./gradlew build ``` ```bash # MacOS permission fix (if needed) chmod 755 gradlew ``` ```powershell # Windows (Powershell) gradlew.bat build ``` -------------------------------- ### Install Java Dependencies with Gradle Source: https://github.com/nylas/use-cases/blob/main/packages/send-and-read-emails/backend/java/README.md These commands install the necessary Java dependencies for the Nylas sample app using Gradle. The `build.gradle` file includes the Nylas SDK. For a standalone project, you would add the Nylas Java SDK as a dependency in your `build.gradle` file. ```bash # MacOS / Unix ./gradlew build ``` ```bash # Windows (Powershell) gradlew.bat build ``` ```bash # Fix permission error on MacOS/Unix chmod 755 gradlew ./gradlew build ``` -------------------------------- ### Check Node.js Version Source: https://github.com/nylas/use-cases/blob/main/README.md Verifies if the Node.js environment is set up correctly by checking the installed version. Requires Node.js to be installed on the system. Outputs the Node.js version or indicates if it's not installed. ```bash node -v ``` -------------------------------- ### Install Python Dependencies (Bash) Source: https://github.com/nylas/use-cases/blob/main/packages/read-and-create-calendar-events/backend/python/README.md This command installs all the necessary Python dependencies for the sample application, including the Nylas package, as listed in the `requirements.txt` file. Ensure you have a virtual environment activated before running. ```bash pip install -r requirements.txt ``` -------------------------------- ### Build and Run Frontend App Source: https://github.com/nylas/use-cases/blob/main/packages/send-and-read-emails/frontend/react/README.md Commands to build the React frontend application for production and to start the local development server for testing. Assumes a backend server is already running. ```bash npm run build npm start ``` -------------------------------- ### Install Nylas Ruby Gem Source: https://github.com/nylas/use-cases/blob/main/packages/read-and-create-calendar-events/backend/ruby/README.md This command installs the Nylas Ruby SDK directly. It's typically added to the Gemfile for project dependencies but can be installed globally if needed. ```bash gem install nylas ``` -------------------------------- ### Install Ruby Dependencies with Bundler Source: https://github.com/nylas/use-cases/blob/main/packages/read-and-create-calendar-events/backend/ruby/README.md This command installs the necessary Ruby gems specified in the Gemfile, including the Nylas package, for the sample application to run. ```bash bundle install ``` -------------------------------- ### Run Nylas Backend Server with Gradle Source: https://github.com/nylas/use-cases/blob/main/packages/read-emails/backend/java/README.md These commands initiate the backend server for the Nylas sample application using Gradle. The `run` task starts the server, typically on localhost:9000, allowing you to make API calls or connect a frontend. ```bash ./gradlew run ``` ```powershell gradlew.bat run ``` -------------------------------- ### Install Node Dependencies with npm Source: https://github.com/nylas/use-cases/blob/main/packages/schedule-events/frontend/react/README.md Installs the necessary Node.js dependencies for the frontend sample app. This includes adding the Nylas React package if it's not already present in the project's package.json. ```bash npm install npm install --save @nylas/nylas-react ``` -------------------------------- ### Run Nylas Java Backend Server with Gradle Source: https://github.com/nylas/use-cases/blob/main/packages/send-and-read-emails/backend/java/README.md These commands start the backend server for the Nylas sample application using Gradle. You will need to run this in one terminal session while the frontend runs in another. The server will be accessible at `localhost:9000`. ```bash # MacOS / Unix ./gradlew run ``` ```bash # Windows (PowerShell) gradlew.bat run ``` -------------------------------- ### Check Python Version Source: https://github.com/nylas/use-cases/blob/main/README.md Checks if Python 3.7 or later is installed, which is required for Python backend demos. Outputs the Python version or an error if not installed. ```bash python3 --version ``` -------------------------------- ### Build Nylas React Frontend Application Source: https://github.com/nylas/use-cases/blob/main/packages/read-emails/frontend/react/README.md Compiles and bundles the React frontend application for production deployment. This command typically uses build tools configured in 'package.json' to create optimized static assets. ```bash npm run build ``` -------------------------------- ### Create and Activate Virtual Environment (Python) Source: https://github.com/nylas/use-cases/blob/main/packages/send-emails/backend/python/README.md Sets up an isolated Python environment to manage project dependencies. Activation is required before installing packages or running the application. ```bash python3 -m venv env source env/bin/activate ``` ```powershell python3 -m venv env .\env\Scripts\activate.bat ``` -------------------------------- ### Install Node Dependencies (Bash) Source: https://github.com/nylas/use-cases/blob/main/packages/read-and-create-calendar-events/backend/node/README.md Installs the necessary Node.js dependencies for the Nylas sample application. This includes adding the Nylas package to your project's dependencies. ```bash npm install # To add Nylas package to your own app: npm install --save nylas ``` -------------------------------- ### Set Environment Variables for Flask App (Bash/PowerShell) Source: https://github.com/nylas/use-cases/blob/main/packages/send-emails/backend/python/README.md Configures the Flask application file and the port for running the backend server. This is essential for starting the Nylas sample app. ```bash export FLASK_APP=server.py python3 -m flask run --port=9000 ``` ```powershell $env:FLASK_APP=server.py python3 -m flask run --port=9000 ``` -------------------------------- ### Start Backend Server (Bash) Source: https://github.com/nylas/use-cases/blob/main/packages/read-and-create-calendar-events/backend/node/README.md Starts the Node.js backend server locally. This command should be run in a separate terminal session from the frontend, and it makes the server available on localhost:9000 for API calls. ```bash npm start ``` -------------------------------- ### Run the Ruby Backend Server Source: https://github.com/nylas/use-cases/blob/main/packages/read-and-create-calendar-events/backend/ruby/README.md This command starts the local backend server for the Nylas sample application. It uses Ruby to serve API requests and needs to be run in a separate terminal from the frontend. ```bash ruby server.rb ``` -------------------------------- ### Export Flask App and Run Server (Bash) Source: https://github.com/nylas/use-cases/blob/main/packages/read-and-create-calendar-events/backend/python/README.md This bash script sets the Flask application file to 'server.py' and then runs the Flask development server on port 9000. This command starts the backend for the Nylas sample app. ```bash export FLASK_APP=server.py python3 -m flask run --port=9000 ``` -------------------------------- ### Run Flask Backend Server (Bash) Source: https://github.com/nylas/use-cases/blob/main/packages/send-and-read-emails/backend/python/README.md Starts the Flask development server for the Nylas sample application. It requires setting the FLASK_APP environment variable and specifies the port to run on. This command needs to be run in a separate terminal session from the frontend. ```bash # MacOS / Unix export FLASK_APP=server.py python3 -m flask run --port=9000 ``` ```powershell # Windows (PowerShell) $env:FLASK_APP=server.py python3 -m flask run --port=9000 ``` -------------------------------- ### Check Ruby Version Source: https://github.com/nylas/use-cases/blob/main/packages/read-emails/backend/ruby/README.md This command checks the currently installed Ruby version on your system. It is useful for troubleshooting compatibility issues, especially on macOS where an older system Ruby might be present. ```bash ruby -v ``` -------------------------------- ### Add Nylas React Package as a Dependency Source: https://github.com/nylas/use-cases/blob/main/packages/read-orders/frontend/react/README.md Adds the official Nylas React package as a project dependency using npm. This command is typically run within an existing Node.js project. ```bash npm install --save @nylas/nylas-react ``` -------------------------------- ### Nylas Application Secrets Configuration Source: https://github.com/nylas/use-cases/blob/main/packages/read-emails/backend/node/README.md Example configuration for a `.env` file used to store sensitive Nylas application credentials like CLIENT_ID and CLIENT_SECRET. These are essential for authenticating with the Nylas API. ```yaml CLIENT_ID=client_id... CLIENT_SECRET=client_secret... ``` -------------------------------- ### Format Code with Prettier Source: https://github.com/nylas/use-cases/blob/main/CONTRIBUTING.md Apply code styling standards using Prettier. This command formats your code to match the project's style guide, ensuring a consistent look and feel. It's a crucial step before submitting code. ```shell npm run lint:prettier ``` -------------------------------- ### Nylas .env File Configuration (YAML) Source: https://github.com/nylas/use-cases/blob/main/packages/read-and-create-calendar-events/backend/node/README.md Example configuration for the .env file, which stores sensitive Nylas application credentials like CLIENT_ID and CLIENT_SECRET. These are essential for authenticating API requests. ```yaml # Nylas application keys - see https://developer.nylas.com/docs/developer-guide/authentication/authorizing-api-requests/#sdk-authentication CLIENT_ID=client_id... CLIENT_SECRET=client_secret... ``` -------------------------------- ### Build Java Project with Gradle Source: https://github.com/nylas/use-cases/blob/main/packages/schedule-events/backend/java/README.md These commands are used to build the Java project, which includes downloading and integrating the necessary Nylas SDK packages. It covers both MacOS/Unix and Windows environments, including a permission fix for MacOS. ```bash ./gradlew build ``` ```bash chmod 755 gradlew ``` ```powershell gradlew.bat build ``` -------------------------------- ### Create and Activate Python Virtual Environment (Bash) Source: https://github.com/nylas/use-cases/blob/main/packages/read-and-create-calendar-events/backend/python/README.md This bash script demonstrates how to create a new virtual environment named 'env' and then activate it. Virtual environments are crucial for isolating project dependencies. ```bash python3 -m venv env source env/bin/activate ``` -------------------------------- ### Create and Activate Python Virtual Environment (Bash) Source: https://github.com/nylas/use-cases/blob/main/packages/send-and-read-emails/backend/python/README.md Sets up an isolated Python environment using venv. This ensures that project dependencies do not conflict with other Python projects. Activation is specific to the operating system. ```bash # MacOS / Unix python3 -m venv env source env/bin/activate ``` ```powershell # Windows (PowerShell) python3 -m venv env .\env\Scripts\activate.bat ``` -------------------------------- ### Export Flask App and Run Server (PowerShell) Source: https://github.com/nylas/use-cases/blob/main/packages/read-and-create-calendar-events/backend/python/README.md This PowerShell script configures the Flask application file as 'server.py' and initiates the Flask development server on port 9000. This is used to launch the backend of the Nylas sample application. ```powershell $env:FLASK_APP=server.py python3 -m flask run --port=9000 ``` -------------------------------- ### Create and Activate Python Virtual Environment (PowerShell) Source: https://github.com/nylas/use-cases/blob/main/packages/read-and-create-calendar-events/backend/python/README.md This PowerShell script shows how to create a new virtual environment named 'env' and then activate it. Using virtual environments helps manage project-specific Python packages. ```powershell python3 -m venv env .\env\Scripts\activate.bat ``` -------------------------------- ### Add Nylas Java SDK to build.gradle Source: https://github.com/nylas/use-cases/blob/main/packages/read-emails/backend/java/README.md This line shows how to add the Nylas Java SDK as a dependency in your `build.gradle` file. This ensures that the SDK is included when you build your Java project. ```gradle implementation('com.nylas.sdk:nylas-java-sdk:1.21.0') ``` -------------------------------- ### Lint Code with npm Source: https://github.com/nylas/use-cases/blob/main/CONTRIBUTING.md Run this command to ensure your code adheres to linting standards. This helps maintain code quality and consistency across the project. No specific input or output is detailed, but it's a prerequisite for code contributions. ```shell npm run lint ``` -------------------------------- ### Add Nylas Package as a Dependency Source: https://github.com/nylas/use-cases/blob/main/packages/read-emails/backend/node/README.md Adds the Nylas Node.js package as a project dependency using npm. This command ensures the Nylas SDK is available for use in the application. ```bash npm install --save nylas ``` -------------------------------- ### Fix Gradle Wrapper Permissions (MacOS/Unix) Source: https://github.com/nylas/use-cases/blob/main/packages/read-emails/backend/java/README.md This command grants execute permissions to the Gradle wrapper script (`gradlew`) on MacOS or Unix-like systems. This is necessary to resolve potential permission errors when running Gradle tasks. ```bash chmod 755 gradlew ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.