Purpose of this project is to show skills with React, TypeScript and Next.js.
This project is using pure React Context API for demonstration purposes.
For RESTful resource, better alternatives are for example Tanstack's React Query or React Redux
There are at least two choices:
- ✅ swapi.info (in use)
- ❌ Missing pagination & search
- ✅ JSON Schema
- ❌ swapi.dev
You can automatically generate stuff from OpenAPI and data endpoint.
pnpm gen:swapi:schema- write schemas with inferred types using valibot library.pnpm gen:swapi:sample- fetch sample data from entire swapi.infopnpm gen:swapi- do both of the above
- Use Conventional Commits convention for commit messages
- Do not introduce new dependencies
This is a Next.js project bootstrapped with create-next-app.
First, run the development server:
pnpm devOpen http://localhost:3000 with your browser to see the result.
This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.