Skip to content

Rift Insight is a Next.js application providing detailed League of Legends player stats and insights.

License

Notifications You must be signed in to change notification settings

oskvr37/rift-insight

Repository files navigation

Rift Insight

Rift Insight is a Next.js application providing detailed League of Legends player stats and insights.

release badge state badge

Tech stack

next.js badge tailwindcss badge typescript badge postgreSQL badge jest badge

Installation

Install the dependencies with npm:

npm install

Environment variables

You need to set the following environment variables:

RIOT_API_KEY="your_riot_api_key"
DATABASE_URL="postgresql://user:password@localhost:5432/database"

Database

Rift Insight uses a PostgreSQL database. You can run npx prisma studio to open the Prisma Studio and interact with the database. Use npx prisma migrate dev to sync the database schema with the Prisma schema.

Riot API

You need to get an API key from the Riot Developer Portal. The API key is used to fetch data from the Riot API.

Usage

Run the development server with npm run dev or build the application with npm run build and start the server with npm run start.

Open http://localhost:3000 with your browser to see the result.

Testing

Run the tests with Jest:

npm run test

Features

Check the features document for more information.