Skip to content

Feat/apischemas#24

Merged
zakkiyyat merged 3 commits intoMixMatch-Inc:mainfrom
nottherealalanturing:feat/apischemas
Aug 23, 2025
Merged

Feat/apischemas#24
zakkiyyat merged 3 commits intoMixMatch-Inc:mainfrom
nottherealalanturing:feat/apischemas

Conversation

@nottherealalanturing
Copy link
Contributor

This completes API schema using OpenAPI 3.0 and integrates Mock Service Worker (MSW) into the Next.js app. With realistic mock handlers for all endpoints, the frontend can now run the full user journey (auth, profiles, swipes, matches, and chat) entirely against the mock server, enabling smooth parallel development without needing a live backend.

closes #9

…hema

- Added MSW (Mock Service Worker) setup for intercepting API requests in development.
- Created handlers for user login, potential matches, and swipe actions with fake data generation using @faker-js/faker.
- Defined TypeScript types for user profiles, music profiles, and swipe responses in api-schema.ts.
- Updated package.json to include necessary dependencies for MSW and faker.
- Added MswProvider component to initialize MSW in development mode.
- Configured PostCSS and ensured proper formatting in postcss.config.mjs.
Copy link
Contributor

@zakkiyyat zakkiyyat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please rectify the eslint error.

@nottherealalanturing
Copy link
Contributor Author

all done, please review

Copy link
Contributor

@zakkiyyat zakkiyyat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks for contributing

@zakkiyyat zakkiyyat merged commit 527421c into MixMatch-Inc:main Aug 23, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Define API Schema and Implement Mock Service Worker (MSW)**

2 participants