Giter Site home page Giter Site logo

node.js-xrpl.js-infura-firebase-integrations's Introduction

backend

Description

This is the backend repository for the NFT Marketplace.

API Documentation

Authentication

  • Get Current User Data: GET /v1/auth/profile [Session cookie need to be present on the client set by OAuth]

  • Create or Log into Account With Xumm (Anonymous User): GET /v1/auth/xumm [Socket IO Channel accountCreated]

  • Google OAuth Screen: GET /v1/auth/google

  • Google OAuth Callback: GET /v1/auth/google/callback

  • Twitter OAuth Screen: GET /v1/auth/twitter

  • Twitter OAuth Callback: GET /v1/auth/twitter/callback

  • Discord OAuth Screen: GET /v1/auth/discord

  • Discord OAuth Callback: GET /v1/auth/discord/callback

  • Update Account After OAuth (Authenticated User): PUT /v1/auth/oauth/ [Socket IO Channel accountCreated]

  • Create Account With Passkey (Authenticated User): POST /v1/auth/createAccountWithPasskey

  • Login Account With Passkey (Authenticated User): POST /v1/auth/loginAccountWithPasskey

NFTs/Collections

  • Get List of All NFTs: GET /v1/nfts
  • Mint an NFT: POST /v1/nfts/mint [Socket IO Channel nftMint]
  • Get NFTs of a User: GET /v1/nfts/:username [Returns NFTs of the user based on account address, to be changed to username]

User

  • Get Account: GET /v1/:username [Returns public data of the user] (TODO)

Installation

Project setup

npm install

Setup .env file

# Copy .env.example to .env and edit the values
cp .env.example .env

Get Firebase Service Account Key

# Place this in the config directory
touch ./src/config/serviceAccountKey.json

Run in dev mode

npm run dev

# If there is an error, create build and run again
npm run build
npm run dev

node.js-xrpl.js-infura-firebase-integrations's People

Contributors

avrulesyou avatar

Stargazers

 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.