This project is a SvelteKit application designed to showcase user profiles using GraphQL to fetch and display data. It features a login system and interactive statistic graphs created with SVG to visualize user progress and achievements.
- User authentication with JWT via GraphQL.
- Dynamic profile page that displays user information including basic identification, XP amount, audit ratio, and skill progress.
- Node.js installed on your machine.
- Access to the GraphQL endpoint provided by the platform.
-
Clone the repository:
git clone https://01.kood.tech/git/mkuzmina/graphql
-
Navigate to the project directory:
cd graphql -
Install the dependencies:
npm install
- Start the development server:
npm run dev
- Open your browser and navigate to
http://localhost:5173.
The application is hosted on [your chosen platform], accessible at [your deployed URL].
- The login page supports authentication using either username:password or email:password.
- Upon successful login, a JWT is obtained and used for subsequent GraphQL queries.
- Displays selected user information fetched from the GraphQL API.
- Incorporates SVG graphs to visualize data, which are interactive and responsive.
The project utilizes various GraphQL queries to fetch data, including normal, nested, and argument-based queries.