Skip to content
AegisBlade Example Applications
JavaScript Python Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
nodejs
python
.gitignore
LICENSE
README.md

README.md


Logo

AegisBlade Example Applications

A set of applications showing how to deploy and run code with AegisBlade.
Read the docs »

Sign Up for an API Key · Report Bug

Table of Contents

Examples

Python Listing

  • Hello World: Runs a simple job that fetches the server's hostname.

  • Local Library: Shows how to link a local library as part of a job.

  • Selenium: Shows usage of capabilities for both firefox and chrome selenium jobs.

Node.js

  • Hello World: Runs a simple job that fetches the server's hostname.

  • Local Library: Shows how to link a local library as part of a job.

  • Puppeteer: Demonstrates usage of capabilities to run puppeteer in a job for web crawling.

  • Puppeteer Chrome: Demonstrates running puppeteer that uses the 'google-chrome' binary.

Running the Examples

Sign up for an API Key before running the examples.

Clone this repo and navigate to the example you'd like to run in your favorite shell.

$ git clone https://github.com/aegisblade/examples
$ cd examples

Prerequisites

Set the AEGISBLADE_API_KEY environment variable.

$ export AEGISBLADE_API_KEY="my-api-key"

Python Examples

AegisBlade is supported on Python 2.7, 3.4 - 3.6.

  • Ensure virtualenv is installed.
$ pip install virtualenv
  • Create a new virtualenv and install the dependencies.
$ cd python/selenium
$ virtualenv venv
$ . ./venv/bin/activate
$ pip install -r ./requirements.txt
  • Run the example.
$ python -u main.py

Node.js Examples

AegisBlade is supported on Node.js >= 8.0.

  • Install dependencies.
$ cd nodejs/puppeteer
$ npm install
  • Run the example.
node main.js

License

Distributed under the Apache 2.0 License. See LICENSE for more information.

Contact

AegisBlade - @aegisbladehq - welovedevs@aegisblade.com

Project Link: https://github.com/aegisblade/examples

You can’t perform that action at this time.