Giter Site home page Giter Site logo

fansforever-backend's Introduction

FAN Backend

FAN Backend

Prerequisites

  • Node.js >12.x
  • Yarn or Node Package Manager (NPM)

Setting up your Development Enviroment

  1. Clone the repository on your local machine
git clone https://github.com/junaidShaikh/fan-backend.git
  1. Change current directory to the project directory
cd fan-backend
  1. Install your dependencies with a package manager of your choice
yarn

or

npm install
  1. Run the development version of you application
yarn start

or

npm run start
  1. The APIs should be accessible at the base URL http://localhost:8000. You can visit the link in your browser of choice as long as the dev server is running.

Postman collection for the API routes can be found here.



APIs available as on 23-04-2021

Auction APIs

APIs to interface with Auctions collection in DB.

1. GET /auction

Get single auction details from DB.

2. GET /auction/list

Get list of all auctions with details from DB.

3. POST /auction

Create new Auction in DB.


Event APIs

APIs to interface with various Event related collections in DB.

1. GET /events/auction/create

Get list of all auction created events on smart contract

2. GET /events/auction/bids

Get filtered list of all auction bid events on smart contract

3. GET /events/auction/claim-tokens

Get list of all auction claim token events on smart contract


NFT APIs

APIs to interface with NFT collection in DB.

1. GET /nft/listall

Get list of all NFTs in collection

2. POST /nft/details/:tokenId

Get details of single NFT from collection filtered by tokenId.

3. POST /nft/list

Get list of all nfts associated with a single wallet address.

4. POST /nft

Create a new NFT Document on NFTs collection in DB.

5. PUT /nft

Update an NFT Document associated with a wallet address. Operation allowed to the owner of NFT only


User Profiles APIs

APIs to interface with Profiles collection in DB.

1. GET /profile

Get Profile details of a user by matching user's wallet address or their account handle

2. POST /profile

Create a new profile document in Profiles collection in DB.

3. PUT /profile

Update the matched user profile.

4. GET /profile/user

Check if user account handle already exists.


IPFS APIs

APIs to interface with IPFS network via the Pinata service.

1. POST /ipfs/file

Add a file to IPFS network using Pinata service.

2. POST /ipfs/json

Add a JSON object to IPFS network using Pinata service.

fansforever-backend's People

Stargazers

drkhrs avatar Web3 | NestJS Backend Developer avatar  avatar

Watchers

FullStack & Blockchain 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.