GithubHelp home page GithubHelp logo

devopswebdev / atomic-swap Goto Github PK

View Code? Open in Web Editor NEW

This project forked from honungsburk/atomic-swap

0.0 0.0 0.0 3.13 MB

A trustless p2p trading dApp on Cardano

Home Page: https://atomic-swap.io/

License: GNU General Public License v3.0

JavaScript 0.82% TypeScript 98.85% CSS 0.08% HTML 0.25%

atomic-swap's Introduction

Atomic Swap Logo

Atomic Swap

Trustless p2p trading on Cardano

contributions welcome Website Tweet

Built with ❤︎ by contributors


Atomic Swap

Support

Features

  • Trustless trading using multisig transactions
  • Create trades with as any number of assets (NFTs, Tokens, and etc)
  • P2p networking between clients using webrtc
  • Super simple to self-host
  • PWA - progressive web app
  • Text chat
  • Voice chat
  • Blacklist/Whitelist assets
  • Dark mode

Getting Up and Running

Install & Build

  1. npm install --save --legacy-peer-deps react-kawaii
  2. cd functions
  3. npm install
  4. Add secrets as explained in "Handling Secrets"
  5. npm run build
  6. cd ..
  7. npm run build

Note: there is currently a bug in chakra-ui that causes builds to fail see this issue. The best way to resolve it for now is to replace "ColorAdjust" with "PrintColorAdjust" at "node_modules/@chakra-ui/menu/dist/declarations/src/use-menu.d.ts:480:50" and "node_modules/@chakra-ui/menu/dist/declarations/src/use-menu.d.ts:986:61"

Serving

After building you can serve the application using by running firebase emulators:start and npm run preview

Hot Reloading

When developing you don't need to build the app but can use firebase emulators:start and npm run dev. Note that while the frontend is rebuilt automatically the backend must be recompiled before you can serve new versions.

Storing secrets

Secrets must be stored in a name with the format secrets.ts in the functions/src/ directory. (This ensures that they are ignored by git.) You get the secrets from blockfrost.

Example:

export const BLOCKFROST_ID_MAINNET = "...";
export const BLOCKFROST_ID_TESTNET = "...";

License

This project is licensed under the GPL 3.0 - see the LICENSE file for details.

Authors

This project exists thanks to all the people who contribute — contribute.

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.