Skip to content

StarWars Cards - a React application built with generated API from the Swapi.dev.

Notifications You must be signed in to change notification settings

PavelSeleznevQS/startwarscards

Repository files navigation

Getting Started with Star Wars Cards

A React application built with generated API from the Swapi.dev. This project was bootstrapped with Create React App.

Built with

  • React
  • React Router
  • React Query
  • MUI Components
  • Styled Components

Available Scripts

In the project directory, you can run:

npm run openapi

prerequisite is installed jdk (https://www.oracle.com/java/technologies/downloads/) Runs openApi generator to create axios API from schema swapi.json

npm run openapi:use-container-json

Runs previous command in Docker container, no need to install jdk

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.