NoshonNetworks / landver

Onchain Land Management
https://landver.net/
MIT License
7 stars 44 forks source link

Setup a backend routes for Land events #183

Open fishonamos opened 1 week ago

fishonamos commented 1 week ago

Setup an express server that will query the land events indexed in #166

getlands, getinspectors, getapproved lands, verify lands(takes landid and returns true if land is verified), tranfer history etc.

ekumamatthew commented 1 week ago

Could I take on this issue?

Birdmannn commented 1 week ago

Hi @fishonamos I just went through the apibara indexer docs and I can handle this issue

GoSTEAN commented 1 week ago

Can I work on this, please? Steps:

  1. Initialize a new Express project and install required dependencies like express, axios, and dotenv.
  2. Set up a basic Express server and configure it to listen on a specific port.
  3. Create routes for endpoints like /getlands, /getinspectors, /getapprovedlands, /verifyland/:id, and /transferhistory.
  4. Implement API calls within the routes to query indexed land events from #166.
  5. Test all endpoints to ensure correct responses and deploy the server. Expected time 24hrs