Skip to content

Madraceee/gasViewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, Ensure Redis is running. Change the URL, PORT for Redis

Second, run the development server:

npm run dev

To start NextJS

npm run start:nextjs

To start Server

npm run start:custom

Note Both Client and server will Start If server fails to start rerun the command

Open http://localhost:3000 with your browser to see the result. http://localhost:3001 for backend Services

API routes

Routes Description
/api/health returns "OK"
/api/latest returns Latest Block
/api/blocks-default returns the latest 25 blocks
api/blocks-timestamp/:oldtimestamp returns all the blocks from latest block uptill the block having oldtimestamp

Note The frontend should send the oldtimestamp in UNIX format

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published