Skip to content

aegisblade/examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation


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