Coder Social home page Coder Social logo

angganurfaizal / market Goto Github PK

View Code? Open in Web Editor NEW

This project forked from litecoinlabs/market

0.0 0.0 0.0 2.31 MB

Open-source, trustless marketplace for litecoin NFTs/ordinals/inscriptions. Forked from https://github.com/orenyomtov/openordex

License: MIT License

JavaScript 89.56% CSS 6.21% HTML 4.08% HCL 0.15% Dockerfile 0.01%

market's Introduction

OrdinalsLite.Market - Litecoin Ordinals Decentralized Exchange

OrdinalsLite.Market is an open source zero-fee trustless Litecoin NFT marketplace based on partially signed litecoin transactions

How it works

The seller creates a partially signed litecoin transaction (PSBT) specifying the price of the ordinal. The buyer can then sign the PSBT and broadcast it to the network.

How to add your collection

All inscriptions can be viewed directly via their inscription number or ID.

In addition, the homepage features collections in a random order.
The collection data is taken from the litecoinlabs/collections repo.

In order to have your collection listed, create a pull request on the litecoinlabs/collections repo.

How to run OrdinalsLite.Market in your localhost

Build docker image

docker build -t market .

Run OrdinalsLite.Market with hot reloading

docker run -it -d -p 8080:80 --name llabs-market -v $(pwd)/build:/usr/share/nginx/html market

screenshot

Litecoin-specific notes:

Generate bitcoinjs-lib with litecoin support:

cd generate-bitcoinjs
npm install
npm run compile
# build/js/bitcoinjs-lib will be replaced

Terraform deployment

  1. (Optional) Modify deployment/main.tf to change the aliases if you want to deploy on a domain other than ordinalslite.market
  2. Get your AWS access key ID and secret access key, and the ACM certificate ARN for the domain you want to deploy on
  3. Add these to your terminal environment (.bashrc, .zshrc, or .bash_profile on Mac/Linux) using variables AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, and TF_VAR_acm_certificate_arn respectively
  4. Run terraform init for the first time
  5. Before every deployment, run terraform plan
  6. When you're happy with the changes, run terraform apply

Be sure to add a CNAME record (or ALIAS, in the case of a root domain) on your domain for the outputted Cloudfront distribution URL given at the end of terraform apply

Build HTML files

Much of the content in the HTML files is duplicated, so we've partially extracted the consistent code into seperate files.

Generate the HTML files in ./build with the following commands:

cd run-build
npm install
npm run build
# build/*.html will be replaced

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.