Git Product home page Git Product logo

enifty's Introduction

eNIFTY

Alt text

eNIFTY is an NFT marketplace where where people can efficiently use the NFTs owned by them in various ways like trading and using them as collateral for loans.

Installation API

Download node.js to install eNIFTY API.

To setup the solana blockchain environment make sure to install Rust and Solana CLI.

You'll know you've done it right if you can run solana --version, git --version, and cargo --version and see outputs like:

solana --version
solana-cli 1.7.10 (src:03b93051; feat:660526986)

And

cargo --version
cargo 1.54.0 (5ae8d74b3 2021-06-22)

Download the whole code using.

git clone https://github.com/kjain333/eNIFTY.git

Set the solana cluster (network) to devnet.

solana config set --url https://api.devnet.solana.com

Create a keypair for your account. This will be your public / private key. This is an insecure method for storing keys, please use this account for testing only.

You'll be prompted for a password.

mkdir solana-wallet
solana-keygen new --outfile solana-wallet/keypair.json

Fund your account on devnet, we can use a faucet. Command line faucet:

solana airdrop 5 $(solana-keygen pubkey solana-wallet/keypair.json)

Build the program

cargo build-bpf

Deploy the program. The output from the previous step will give you the command to execute to deploy the program. It should look similar to this(or any other command use recieve after cargo build):

solana program deploy target/deploy/eNIFTY-API.so --keypair solana-wallet/keypair.json

You'll see an output like:

RPC URL: https://api.devnet.solana.com
Default Signer Path: solana-wallet/keypair.json
Commitment: confirmed
Program Id: Your Program Id

In the project folder, run the following command to install all the necessary dependencies for this project.

npm install

Then go to the client folder using

cd client/src

Create new file name keys.js and store your API key there.

const API_KEY = 'YOUR STARDUST_API KEY'
module.exports = API_KEY;

Now start the API using

npm start

The API is now started and should be successfully running at localhost:8080.

Installation FLUTTER-APP

To setup the Flutter mobile application

cd eNIFTY/eNIFTY-App
flutter pub get

Change the API call URL to your localhost then

flutter run

To ease out the process we have also provided a special guest access in our app apk file which can be used without any setup but with limited features. It can be accessed from: APK

A postman collection of our API's: Postman Collection

For more please go through our detailed powerpoint Presentation

enifty's People

Contributors

kjain333 avatar venkateshsv avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

studentofcoding

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.