https://github.com/mobius-network/flappy-dapp
Flappy Bird sample DApp in different languages
https://github.com/mobius-network/flappy-dapp
Last synced: over 1 year ago
JSON representation
Flappy Bird sample DApp in different languages
- Host: GitHub
- URL: https://github.com/mobius-network/flappy-dapp
- Owner: mobius-network
- Created: 2018-07-08T19:09:05.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-12-22T09:03:18.000Z (over 3 years ago)
- Last Synced: 2023-03-02T09:45:56.001Z (over 3 years ago)
- Language: JavaScript
- Size: 1.15 MB
- Stars: 4
- Watchers: 7
- Forks: 2
- Open Issues: 35
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Flappy DApp Example Repo
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.
## Getting Started
Clone this repository:
```console
$ git clone https://github.com/mobius-network/flappy-dapp.git
```
## Backend Configuration
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.
### Serverless Quickstart
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.
```console
$ cd backend/serverless-quickstart
```
### Node.js API
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.
```console
$ cd backend/nodejs-api
```
### Python Flask 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.
```console
$ cd backend/python-flask-api
```
### PHP 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.
```console
$ cd backend/php-api
```
### .NET Core 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.
```console
$ cd backend/php-api
```
## Frontend Configuration
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`
```console
$ cd frontend
```
Install Dependencies
```console
$ yarn install
```
Set Endpoint in `main.js`
```javascript
// The port may vary depending on what the local API is running on.
const DAPP_API = 'http://localhost:8080/api';
```
Run localhost Server
```console
$ yarn dev
```