Giter Club home page Giter Club logo

solana-links's Introduction

Solana Links

Solana links is a proof of concept application not ment for production. This was created to play around with solana and learn how to build and deploy an application on the solana blockchain using the anchor framework.

The application will allow you to register a username if it has not already been taken, and then create links to your "homepage" that are all stored on the blockchain. There is no backend apart from using the solana devnet, all data is stored in the blockchain.

Important Note: I do not know 100% if this is secure.

Features

  • Anchor Framework
  • PDA (Program Devised Address)
  • Instruction Signing
  • Owner/Authority Validation of Accounts
  • Closing Accounts
  • Searching accounts and filtering by memcmp

Deployment of Solana Program

Deploy the program first you will need to start the solana container using docker-compose up once done you may run this commands to upload to the devnet

npm run anchor:build
npm run anchor:deploy

This will deployed to the blockchain. You need to take the application pubkey that is provided on the deploy and update the lib.rs file with the new key. Then deploy once more.

Deployment of Frontend

The front end of the applcationis built using vuejs and nuxt as a single page application. This is the only part of the application that will need to be hosted.

npm run app:build

Will create a the files to be uploaded in src/aim/app/dist

Example

The appliation requires the Phantom Wallet and it must be set to devnet. Make sure you have some SOL then register a new account.

Example application

Example user page

Todo

  • Work out how rent of accounts and links work. See if I can calculate for all accounts and display when things expire
  • Validation of Url. Currently commented off due to failing to upload to devnet which i presume is because its too large
  • Allow Updating of Url
  • Better UI

admin page

user-page

solana-links's People

Contributors

coxeh avatar

Stargazers

Chungo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.