Skip to content

This is my final year project 🎓 It is a Bitcoin Wallet with social media elements built using MEAN-Stack 💰

Notifications You must be signed in to change notification settings

DonalMcGahon/Final-Year-Project-Applied-Diss-1

 
 

Repository files navigation

Bitcoin Wallet

Project Details
Course BSc (Hons) in Software Development
Module Applied Project and Minor Dissertation
College GMIT Galway
Students Donal McGahon    G00299627
Conor Tighe           G00314417
Stephen Murphy    G00323639
Project Supervisor Gerard Harrison
Project Title Bitcoin Wallet

GitHub contributors GitHub issues Documentation Status made-for-VSCode made-with-latex made-with-Markdown


Application Code Structure

  1. Architecture
  2. Documentation
  3. Main components
  4. Demo
  5. Login
  6. App Navigation
  7. User Profiles
  8. Bitcoin Wallet
  9. Blog Posts
  10. Social Media Posts
  11. MLABS & Online Interaction
  12. Google Maps Integration
  13. Tx Statements
  14. Cryptocurrency Trading
  15. Cryptocurrency News
  16. Data Modals
  17. Auth Gaurds
  18. Data Services
  19. Live Prices

Overview

This a application is a fully functional bitcoin wallet but with extended social media features and elements. Users can multiple wallets and have them stored on the profile for receiving and sending bitcoin. Users can add people from around the world to their friends list so they can easily send them bitcoin at any time. Users can share customized social media posts that can include the latest statistics and news on the blockchain along with bitcoin prices, miner performance and more up to date information cryptocurrency users regularly reference or discuss. Users can customize their profiles to use different avatars for appearing online. This application also gives users the ability to convert all major FIAT currencies to bitcoin. The maps integration allows users to see their friends latest location and bitcoin activity. There are 7 different types of status post,one for general posts with no data attached, one for posting bitcoin price posts, one for blockchain performance, one for wallet balance, one for miner performance, one for bitcoin places of interest and one for donation requests. The application also has charts to display the latest bitcoin prices and how it compares to other cryptocurrencys.

App Features

  • Rich user GUI with alot of interaction.
  • Status posts displayed, can be deleted.
  • Twitter feed listed on side of page.
  • friends listed in accordian list that exposes details of the account.
  • QR Codes generated live
  • Mlabs Online Server: A Mongodb database hosted by Amazon Web Service.
  • Local Mongodb: Pull personal posts and wallet information from your local database.
  • Add friends to view details or location on map.
  • Create new bitcoin wallets.
  • Add existing wallets to your profile.
  • Convert the value of FIAT to bitcoin.
  • Check the balance of your wallets.
  • Send bitcoin to other wallets.
  • Easily select from friends on your friends list to send BTC to.
  • Create blog posts.
  • Like Posts.
  • Dislike Posts.
  • Delete Posts.
  • Posts displayed in a stack from newest to oldest.
  • Charts displaying latest bitcoin values and other cryptocurrencies

User Guide

Signing up and my first wallet

Before a user can start using the application they must register with our system. The user must give a valid username and suitable password before they can gain access to the platform. Once logged in the user can now create a wallet by navigating to the wallet section in the navigation bar. User must enter a wallet label/name and give a pin. The user must enter this pin everytime they attempt to interact with the addresses, similar to the financial apps created by banks to maximize security.

Interacting with other users

Once they have a wallet is set up they view all the users currently online with the global button or search for users. Once they find the user they are looking for they can click the '+ friend button' to add that person to there friends list. Now the user can send bitcoin to their friends address by clicking the send bitcoin button, inspect that users address with the 'inspect address button' or go view that users location on the map.

Making status posts

First navigate to the map menu, from here you can view your own status on the map or other statuses made by friends. You can choose one of the 7 types of status post on the left, depending on the action if it involves a wallet then you must enter the wallet pin to share that information. The application may also ask you for your devices location so make sure geolocation is turned on or to mark a location on the map, to do this simply click the map to set your latitude and longitude.


Demo

IMAGE ALT TEXT HERE


What is Bitcoin?

Here is a brief video to explain some questions you make have about bitcoin.

IMAGE ALT TEXT HERE

Blockchain.info Business API

Blockchain.info are the largest site for blockchain statisics in the world, we already where planning to use there public API for blockchain statistics and live updates, but then we decided to email them about there private API with soecial permissions and explained what we wanted it for. They replied granting access to the blockchain client, a processor for blockchain requests along with an api code that access the client. This allowed us to devlope ways to create wallets, send bitcoin, check balances and more by using ExpressJs to send and recieve requests from the client running on port 4000 of the machine.


Installation

  • Clone the repository onto your machine.

git clone https://github.com/Smurfgalway/Final-Year-Project-Applied-Diss.git

  • Install MongoDB on your machine by downloading MongoDB from this link MongoDB and follow the websites instructions.

  • Once installed run the following command on your command line from directory monogo is installed in.

mongod

  • Install all dependencies in package.json file. This can be done by navigating to the root directory in the command line interface and running the following command:

npm install

  • Next, install all of the Angular 2 development dependencies in package.json file:

cd client

npm install

  • Installation is complete. Stay in the client directory and then:

npm start

  • Run the blockchain client in a seperate command line window on port 3001:

blockchain-wallet-service start --port 3001

  • Navigate to the root directory and then:

node server.js

Access server at: http://localhost:3000


Technologies

image

The term MEAN stack refers to a collection of JavaScript based technologies used to develop web applications. [1] The MEAN stack is MongoDB, Express.js, Angular 2, and Node.js. Because all components of the MEAN stack support programs are written in JavaScript, MEAN applications can be written in one language for both server-side and client-side execution environments. [2]

MongoDB

mongo

MongoDB stores data in flexible, JSON-like documents, meaning fields can vary from document to document and data structure can be changed over time. MongoDB is a distributed database at its core, so high availability, horizontal scaling, and geographic distribution are built in and easy to use. MongoDB is free and open-source. [3]

ExpressJS

express

Express.js, or simply Express, is a web application framework for Node.js, released as free and open-source software. It is designed for building web applications and APIs. It is in fact the standard server framework for Node.js. Express is the backend part of the MEAN stack, together with MongoDB database and AngularJS frontend framework. [4]

Angular 2/5

angular2/5

Angular is a TypeScript-based open-source front-end web application platform led by the Angular Team at Google and by a community of individuals and corporations. [5]

Angular is a platform that makes it easy to build applications with the web. Angular combines declarative templates, dependency injection, end to end tooling, and integrated best practices to solve development challenges. [6]

NodeJS

NodeJS

Node.js is an open source server framework and it is free. Node.js runs on various platforms (Windows, Linux, Unix, Mac OS X,etc.) It uses JavaScript on the server. [7] Node.js enables JavaScript to be used for server-side scripting, and runs scripts server-side to produce dynamic web page content before the page is sent to the user's web browser. [8]


Architecture

Novemeber presentation

Below is a screenshot from a presentation our team gave to our software development year. This is a basic overview of how the technologies mentioned will connect and interact from back-end to front-end, we are still investigating extra features and technologies that could be used to create these features so this design is subject to change. The full presentation slides are included in this repository. The QR code on the presentation slide is fully functional and will bring you to a link if scanned, the idea was to bring some audiance interaction to our presentation.

Design1

Final product

Below is the final project architecture that we will present to a panel for grading. We completed our scope earlier than expected so you can see a lot more technologies have been added since the November presentation.

Design2

Middleware:

  • bal: Takes care of the balance response from blockchain.info and requesting the balance.
  • blockstats: Takes care of the blockchain statistics response from blockchain.info along with posting those statistics to a status.
  • blockticker: Takes care of the response for the latest prices and posting those latest prices in a status
  • createWallet: Used for creating a new wallet.
  • myWallet: Used for returning wallet information.
  • payment: Used for parsing the success/failure response when bitcoin is sent.
  • pools: Used to retrieve miner data and then post it in a status.
  • profile: This model is used for processing data related to your profile, global users andd friends.
  • request: used to request bitcoin.
  • status: used to post different types and statuses and process status loaded by the app.
  • trading: used to process trading data.

References

[1] - https://www.sitepoint.com/introduction-mean-stack

[2] - https://en.wikipedia.org/wiki/MEAN_(software_bundle)

[3] - https://www.mongodb.com/what-is-mongodb

[4] - https://en.wikipedia.org/wiki/Express.js

[5] - https://en.wikipedia.org/wiki/Angular_(application_platform)

[6] - https://angular.io/docs

[7] - https://www.w3schools.com/nodejs/nodejs_intro.asp

[8] - https://en.wikipedia.org/wiki/Node.js

[9] - https://en.wikipedia.org/wiki/Bitcoin

About

This is my final year project 🎓 It is a Bitcoin Wallet with social media elements built using MEAN-Stack 💰

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TeX 56.1%
  • TypeScript 24.0%
  • HTML 10.8%
  • JavaScript 8.5%
  • Other 0.6%