Giter Site home page Giter Site logo

cryptoine-dapp / mx-quickconnect Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mxenabled/mx-quickconnect

0.0 0.0 0.0 1.52 MB

MX quickstart guide

Shell 0.16% JavaScript 63.18% Ruby 11.57% Python 7.64% C# 5.87% CSS 6.30% HTML 2.71% Dockerfile 2.56%

mx-quickconnect's Introduction

MXquickconnect

MXquickconnect is a sample application which anyone can clone and use their MX client credentials to interface with common MX use cases using Platform API and the javascript widget. It is meant to help a developer see a sample of what MX has to offer while at the same time providing some frontend and backend code which can be extracted into any application.

โš ๏ธ This is only for Platform API users

Table of contents

1. Clone the repository

Using ssh (recommended):

git clone [email protected]:mxenabled/mx-quickconnect.git

Using GibHub CLI:

gh repo clone mxenabled/mx-quickconnect

Using HTTPS:

git clone https://github.com/mxenabled/mx-quickconnect

2. Set up development environment

cp .env.example .env

Create a .env file at the same level as the .env.example. Add your CLIENT_ID and API_KEY. You can find these values in your MX Client Dashboard

3. Run the MXquickconnect app

There are two ways of running this app: with or without Docker. If you would like to orchestrate with Docker, skip to the Run with Docker section below.

Run without Docker

1. Running the backend

You can choose to run one of the following backend implementations. Once started the backend will be running on http://localhost:8000


Backend (Ruby)

cd ruby
bundle install
./start.sh

Backend (Node.js)

cd mx-platform-node
npm install
npm start

Backend (Python)
cd python
pip3 install -r requirements.txt
./start.sh

Backend (AspNet)

Make sure you have dotnet sdk 6 or later installed.

cd mx-platform-aspnet-core
dotnet add package MX.Platform.CSharp
dotnet run

2. Running the frontend

The frontend will run on http://localhost:3000 and will send api requests to http://localhost:8000.

Make sure you have npm version 7 or later installed.

cd frontend
npm install
npm start

Run with Docker

Make sure you have docker comunity 20.10.13 and docker compose 2.3.4 or later installed.

Edit your docker-compose.yml file:

  1. Remove or comment out backends you would not like to run
  2. Uncomment the DOCKER_PROXY_URL that corresponds to the backend you're using
  3. Make sure you have at least one backend, one DOCKER_PROXY_URL, and the frontend
docker-compose up

Open your browser on http://localhost:3000 and enjoy!

mx-quickconnect's People

Contributors

craiting avatar luilver avatar sunitajennings avatar mwclemy avatar codinglogan avatar dependabot[bot] avatar snyk-bot avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.