Skip to content

anasayubi/PakCoin

Repository files navigation

PakCoin

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.

Manual Installation

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)

Linux

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:

  1. nvm install 6.10
  2. nvm use

Otherwise simply install from nodejs.org.

To run PakCoin follow these instructions:

  1. Start MongoDB with sudo service mongod start in terminal
  2. Run mongo to open the mongo shell
  3. Run use Pakcoin in mongo shell to create a database with the name PakCoin
  4. Run db.admins.insert({admin: 'admin', password: '12345'}) in mongo shell to create an administrator profile with username 'admin' and password '12345'
    Note: all identifiers are case sensative
  5. Make a coinbase account and create an API key
  6. Note down the API key and API secret key when presented on the coinbase website
  7. Open the coinbase.js from root of project and store API key and API secret key as string values
  8. Run npm install in terminal in project root to install all the project dependencies
  9. Run npm start in 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/

URLs

GET

  • / - 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

POST

  • /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

About

A light weight bitcoin wallet for Pakistani-based users

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •