Setting up ordinals on 🪟Windows 🪟
# Prerequisites
You need to be running bitcoind
# Setup
## Step 1 - Download ordinal client
a. visit https://github.com/ordinals/ord/releases
b. scroll to Assets 
download file ending with `-x86_64-pc-windows-msvc.zip`
c. extract the downloaded archive
## Step 2 - running the ordinal client
a.
- We will be using our bitcoind node, that we setup previosly.
- Ord client needs to authentificate to access the bitcoind node.
- We will be using the cookie method to do this.
- When bitcoind starts, it creates a file in the data directory name `.cookie`, this file is hidden by default
- We need to point ord client to this file.
b. create a folder for your ordinal data e.g. `D:\btc\ord\data`
c.
- the sync of the ordinal client can take a lot of time, we are going to speed it up by downloading an existing index
- visit https://ordstuff.info/Downloads/indexes/0.16.x/
- download the `index-without-satsXXX.gz` file into `D:\btc\ord\data`
- unpack it
- rename it to `index.redb`
d. open the directoy where you extracted the zip file from step `1.b`
e. you should see a list of files 
f. right click the empty space and select `Open in Terminal`
`I. empty space`
`II. terminal`

g. We will now:
- start the ordinal client
- point it to bitcoind data directory, where it can read the .cookie
- point it to directory where it will store data (separate directory from bitcoind)
- specify a port (this will prevent a conflict if an existing application is already using a port)
- we will do all of this as 1 command
- type in `.\ord.exe --bitcoin-data-dir D:\btc\data --data-dir D:\btc\ord\data server --http-port 9060`
h. you should be good to go, open your browser to `https://localhost:9060`