A simple server to store p2sh script preimages. To be used in conjunction with BitcoinToken.
Assuming Docker and Docker Compose are installed on the system run:
git clone https://github.com/BitcoinDB/bitcoin-non-standard-server.git
cd bitcoin-non-standard-server/
docker-compose up
After the compose has built the containers and started the stack the Bitcoin non standard server should be listening on localhost:3000.
Type the following into a terminal window.
git clone https://github.com/BitcoinDB/bitcoin-non-standard-server.git
cd bitcoin-non-standard-server/
npm install
npm run build
See the PostgreSQL documentation for instructions
Copy the .env.example file to .env and set the Postgres credentials (database name, user, pass, ...) in it.
npm run init
If the database creation completed successfully you should see
Created database bitcoin_non_standard.
Successfully created required database tables.
To start the server type
npm run serve
If everything went well, you should see the following output
Bitcoin non-standard server listening on port 3000
To run the unit tests start the server by running npm run serve in one terminal window. Then open a second terminal and run npm test.
If you have any problems contact clemens@bitcointoken.com.