This repository is dedicated to providing example API's using the different Mobius SDKs. The backend
directory contains different API examples while the frontend of the Flappy Bird DApp is located in the frontend
directory. Full documentation on this process can be found by choosing any example from the official Mobius Docs.
Clone this repository:
$ git clone https://github.com/mobius-network/flappy-dapp.git
Choose an API example you would like to run and navigate to that folder. Within each example, there are specific documentation instructions for setting the initial configuration.
Run an API example using Node.js, the mobius-client-js
SDK with the ability to easily deploy using Webtask.io in minutes. Navigate to the serverless-quickstart
directory to run this API. For full documentation on this example, visit the official Serverless Quickstart API docs.
$ cd backend/serverless-quickstart
Run an API example using Node.js and the mobius-client-js
SDK. Navigate to the nodejs-api
directory to run this API. For full documentation on this example, visit the official Node.js API docs.
$ cd backend/nodejs-api
Run an API example using Python and the mobius-client-python
SDK. Navigate to the python-flask-api
directory to run this API. For full documentation on this example, visit the official Python Flask API docs.
$ cd backend/python-flask-api
Run an API example using PHP and the mobius-client-php
SDK. Navigate to the php-api
directory to run this API. For full documentation on this example, visit the official PHP API docs.
$ cd backend/php-api
Run an API example using .NET Core and the mobius-client-dotnet
SDK. Navigate to the dotnet-core-api
directory to run this API. For full documentation on this example, visit the official .NET Core docs.
$ cd backend/php-api
The frontend of the application only needs minor setup and configuration to run. Full documentation on this process can be found by choosing any example from the official Mobius Docs.
Navigate to frontend
$ cd frontend
Install Dependencies
$ yarn install
Set Endpoint in main.js
// The port may vary depending on what the local API is running on.
const DAPP_API = 'http://localhost:8080/api';
Run localhost Server
$ yarn dev