bitcoin-unlimited-web
v0.8.7
Published
The Bitcoin Unlimited web site
Downloads
46
Maintainers
Readme
BitcoinUnlimitedWeb
The Bitcoin Unlimited website, hosted at https://bitcoinunlimited.info
Developing
Getting Started
This is a node.js project requiring the npm package manager.
The following will install and build the project.
git clone [email protected]:BitcoinUnlimited/BitcoinUnlimitedWeb.git
cd BitcoinUnlimitedWeb
npm install
npm run buildTo automatically rebuild and restart the server upon changes to src, use both npm run watch and npm run nodemon.
Open http://localhost:8080 to view your website.
Development scripts
npm start: Start the servernpm run bower: Install the bower dependenciesnpm run build: Build the project into the.distfoldernpm run watch: Watch thesrcdirectory for changes, and rebuild when changednpm run nodemon: Use nodemon to run the server and restart when.distis changed
Adding a page
To add a page to the website:
- Create a react component such as
your-new-page.jsxin thesrc/public/views/pagesdirectory. Seesrc/public/views/pages/index.jsxfor an example. - Add your react component to the react-router in
src/public/views/main.jsx.
Installing with npm
npm install bitcoin-unlimited-web --savevar BitcoinUnlimitedWeb = require('bitcoin-unlimited-web');