Skip to content
This repository has been archived by the owner on Apr 20, 2021. It is now read-only.

fablabbcn/examples.fablabs.io

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

FabLabs.io Api Examples

This repository includes some examples for the Fablabs.io API in different programming languages.

Feel free to add other examples sending PRs.

Getting started

In order to use any of these examples you need an Application ID and Secret.

Follow the Fablabs.io Developer Guide to learn how to create one.

All examples run on port 3001, so make sure to specify http://localhost:3001/auth/callback as the redirect URL.

Once you have the credentials, you should set the following environment variables before running the examples

export FABLABS_IO_API_KEY='your key'
export FABLABS_IO_API_SECRET='your secret'

If you use a local server:

export FABLABS_IO_API_HOST='http://api.fablabs.local:3000'
export FABLABS_IO_WEB_HOST='http://www.fablabs.local:3000'

If you use the staging server

export FABLABS_IO_API_HOST='http://api.staging.fablabs.io:3000'
export FABLABS_IO_WEB_HOST='http://www.staging.fablabs.io:3000'

If you use the production server

export FABLABS_IO_API_HOST='https://api.fablabs.io'
export FABLABS_IO_WEB_HOST='https://www.fablabs.io'

Examples index

Javascript

  • Vue.js with zeit micro local auth server
  • Express
  • Angular (coming-soon)

Python

About

Examples for the Fablabs.io API in different programming languages

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published