GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Apfirebolt/react-starwars-api: A React application which integrates Star Wars public API to display data from Star Wars franchise

BranchesTags
Open more actions menu

Latest commit

 

History

36 Commits
36 Commits

Folders and files

NameName
Last commit message
Last commit date
public
public
 
 
src
src
 
 
.dockerignore
.dockerignore
 
 
.env
.env
 
 
.env.example
.env.example
 
 
.gitignore
.gitignore
 
 
Dockerfile
Dockerfile
 
 
LICENSE.md
LICENSE.md
 
 
README.md
README.md
 
 
components.json
components.json
 
 
eslint.config.js
eslint.config.js
 
 
index.html
index.html
 
 
nginx.conf
nginx.conf
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
tsconfig.json
tsconfig.json
 
 
vercel.json
vercel.json
 
 
vite.config.js
vite.config.js
 
 

Repository files navigation

React CSS3 HTML5 Docker Nginx

React Starwars - A Star Wars database application created in React using Star wars API ⚡️

Project Briefing

This is an web application created using React which integrates with open API for Star Wars to display information from Star Wars franchise in various categories.

The project is available for showcase at https://react-starwars-api-jet.vercel.app

For more information please visit the API website and the docs here

Made with ❤️ by @apfirebolt

Features/Requirements

  • The app aims at displaying data from the Star Wars API in an attractive looking UI.
  • The API has data from various categories like Planets, People, Ships and Vehicles.
  • Each category would have a separate page.
  • Pagination and API caching is enabled through the use of 'react-query' library.

Built With

  • React
  • React Query
  • Spectre CSS Framework

Project setup

Simply install node modules for frontend and run conventional commands to see it in development mode on your local system. For production environment use 'Docker'.

npm install
npm start

Production Deployment

  • Docker containers are used for deploying this.
  • You can own a virtual server or configure your ECS AWS instances with Docker to deploy this.
  • React production build would be served through Nginx, everything would be through Docker containers.
sudo docker build -t react-starwars .
sudo docker run -d --name evil_react -p 80:80 react-starwars
  1. First step is to create a Docker image from the Docker file within this repo, optionally you can tag it with a name otherwise some random fancy name would be assigned to it.

  2. Once you have the image, you can spawn a container using the second command and then check on localhost port 80 to see the running container.

Heroku Deployment

  • This app can be seamlessly deployed on Heroku using this buildpack https://elements.heroku.com/buildpacks/mars/create-react-app-buildpack

Future Requirements

  • Might as well have detail sections for each character, vehicle and more from the API.
  • Search filtering might be added.

Updates

  • More pages to fetch more types of data from the Star Wars API might be available in future, would be notified here.

Project Screenshots

Some of the screenshots for this application are listed below. For instance this one displays information about planets from the Star Wars franchise.

alt text

Star ships information

alt text

Data from the vehicles API end-point.

alt text

About

A React application which integrates Star Wars public API to display data from Star Wars franchise

react-starwars-api-jet.vercel.app

Topics

dockerheadlessuireactreact-queryreactjsswapi-apitailwindcsstypescripttypescript-react

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.