A light web bitcoin wallet customized for Pakistan-based users. Made with love with Node.js and the Coinbase API.
At the current moment only the manual method of installation is available for linux.
You must have Node and MongoDB installed to run PakCoin. Clone the source code into the a directory and cd into it. (Note: the web app has only been tested with Node v6.10 and MongoDB v3.4)
It is recommended that NVM is used when installing Node. This will ensure that Node v6.10 is used when running the web server. From the root of the project run:
nvm install 6.10nvm use
Otherwise simply install from nodejs.org.
To run PakCoin follow these instructions:
- Start MongoDB with
sudo service mongod startin terminal - Run
mongoto open the mongo shell - Run
use Pakcoininmongoshell to create a database with the namePakCoin - Run
db.admins.insert({admin: 'admin', password: '12345'})inmongoshell to create an administrator profile with username'admin'and password'12345'
Note: all identifiers are case sensative - Make a coinbase account and create an API key
- Note down the API key and API secret key when presented on the coinbase website
- Open the
coinbase.jsfrom root of project and store API key and API secret key as string values - Run
npm installin terminal in project root to install all the project dependencies - Run
npm startin terminal to start the web server
Congratulations! Your web app is now running at localhost:3000. To access PakCoin open your browser to the URL http://localhost:3000/
/- index page or user wallet page if user in session/admin- log in for admin or admin profile page if admin in session/signup- opens signup page for a user/login- opens login page for a user/logout- logs out a current session
/signup- attempt to log in as an existing user/login- attempt to sign up a new user/sendbtc- send btc if a user in session
Any other URL for a corresponding HTTP method will land on an error page