FAN Backend
- Node.js >12.x
- Yarn or Node Package Manager (NPM)
- Clone the repository on your local machine
git clone https://github.com/junaidShaikh/fan-backend.git
- Change current directory to the project directory
cd fan-backend
- Install your dependencies with a package manager of your choice
yarn
or
npm install
- Run the development version of you application
yarn start
or
npm run start
- 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 to interface with Auctions collection in DB.
Get single auction details from DB.
Get list of all auctions with details from DB.
Create new Auction in DB.
APIs to interface with various Event related collections in DB.
Get list of all auction created events on smart contract
Get filtered list of all auction bid events on smart contract
Get list of all auction claim token events on smart contract
APIs to interface with NFT collection in DB.
Get list of all NFTs in collection
Get details of single NFT from collection filtered by tokenId.
Get list of all nfts associated with a single wallet address.
Create a new NFT Document on NFTs collection in DB.
Update an NFT Document associated with a wallet address. Operation allowed to the owner of NFT only
APIs to interface with Profiles collection in DB.
Get Profile details of a user by matching user's wallet address or their account handle
Create a new profile document in Profiles collection in DB.
Update the matched user profile.
Check if user account handle already exists.
APIs to interface with IPFS network via the Pinata service.
Add a file to IPFS network using Pinata service.
Add a JSON object to IPFS network using Pinata service.