Rift Insight is a Next.js application providing detailed League of Legends player stats and insights.
Install the dependencies with npm:
npm install
You need to set the following environment variables:
RIOT_API_KEY="your_riot_api_key"
DATABASE_URL="postgresql://user:password@localhost:5432/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.
You need to get an API key from the Riot Developer Portal. The API key is used to fetch data from the Riot API.
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.
Run the tests with Jest:
npm run test
Check the features document for more information.