Skip to content

RPGLogs/RPGLogsApiSampleApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

See the live demo of this site!

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

Then, the RPGLogs API SDK was installed.

The default /pages/api/hello.js API endpoint was adjusted to /pages/api/latestGuildReport.js, which uses the RPGLogs API SDK to find a guild's latest report.

The /pages/index.js page uses fetch to call this API endpoint.

Run yarn dev to start the local development server on http://localhost:3000.

The sample site is hosted on Vercel as a Next.js site with default settings.