OrdinalsLite.Market is an open source zero-fee trustless Litecoin NFT marketplace based on partially signed litecoin transactions
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.
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.
Build docker image
docker build -t liteordex .Run Liteordex with docker
docker run -it -d -p 8080:80 liteordexRun Liteordex with hot reloading
docker run -it -d -p 8080:80 -v $(pwd):/usr/share/nginx/html liteordexGenerate bitcoinjs-lib with litecoin support:
cd other-scripts
npm install
npm run compile
# js/bitcoinjs-lib will be replaced- Sign in to the AWS Management Console and open the Amazon EC2 console at
https://console.aws.amazon.com/ec2/. - Click 'Launch Instance'
- Select the 'Amazon Linux 2 AMI' instance type.
- Choose a
t3.mediuminstance type (costs around $30/mo). - Set up or select a SSH key.
- Configure the security group to use SSH (22), HTTP (80), and HTTPS (443).
- Add storage. The default 8 GB should be enough.
- Click 'Launch instance'.
- Go back to the EC2 instances list, select your instance, and note down the Public IPv4 address.
- (Optional): Set up (allocate and associate) an elastic IP with the instance.
- Connect to your instance using SSH:
ssh -i /path/my-key-pair.pem ec2-user@my-instance-public-dns-name - Update the installed packages and package cache on your instance:
sudo yum update -y - Install Nginx:
sudo amazon-linux-extras install nginx1.12 - Start Nginx service:
sudo service nginx start - Enable Nginx to start on boot:
sudo chkconfig nginx on
Now install Certbot:
- Install EPEL (Extra Packages for Enterprise Linux) repository:
sudo amazon-linux-extras install epel -y - Install Certbot and the Nginx plugin, plus Git (which we'll need later):
sudo yum install certbot python2-certbot-nginx git
- Remove the default Nginx configuration:
sudo rm -f /etc/nginx/conf.d/default.conf - Create a new Nginx configuration file for your site:
sudo nano /etc/nginx/conf.d/my-site.conf
Add the following content to the file:
server {
listen 80;
server_name ordinalslite.market;
location / {
root /usr/share/nginx/html;
}
# Note: This is only neccessary for older versions of nginx, e.g. 1.12
location ~ \.wasm$ {
types {
application/wasm wasm;
}
root /usr/share/nginx/html;
}
}
Make sure to replace ordinalslite.market with your actual domain name.
- Save and close the file: Ctrl+X, Y, Enter.
- Create a directory for your project:
mkdir -p ~/litecoinlabs/market - Go to the newly created directory:
cd ~/litecoinlabs/market - Clone this Github repository:
git clone https://github.com/litecoinlabs/market.git . - Copy the content of the repository to the Nginx document root:
sudo cp -r * /usr/share/nginx/html/ - Restart the Nginx service:
sudo service nginx restart
Now the website should be accessible via HTTP.
- Set up DNS for your domain to point to the Public IPv4 address / Elastic IP you got in step 1.
- Run Certbot to get a new certificate and automatically configure Nginx:
sudo certbot --nginx
Step 5 still needs work...
#### 5. Setting up auto pull from Github
1. Make the update script executable:
chmod +x ~/litecoinlabs/market/update.sh2. Open the crontab file for editing:
crontab -e3. Add a new line to schedule the update script to run every 15 minutes:
*/15 * * * * /home/ec2-user/litecoinlabs/market/update.sh > /dev/null 2>&1
4. Save and exit (:wq, Enter). The cron job is now scheduled.
Your website should now automatically pull the latest changes from the Git repository every 15 minutes, and is accessible over HTTPS.
This appears to be necessary when moving from one OS to another.
Node instructions taken from AWS developer guide.
- Download nvm:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash - Activate nvm:
. ~/.nvm/nvm.sh - Install Node:
nvm install 16 cd other-scriptsnpm installnpm run compile
