Giter Site home page Giter Site logo

antsukanova / star-db Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 1.07 MB

Star Wars universe SPA

Home Page: https://annabellflem.github.io/star-db/#/

License: Apache License 2.0

Shell 0.11% HTML 2.45% CSS 15.22% JavaScript 82.21%
starwars-api react react-router context-api hoc

star-db's Introduction

About project

This project was created for educational purposes. It contains information on the Star Wars universe.

Written using React and React Router.

To get info about Star Wars universe in JSON format was used Star Wars API

Application has the following features:

  • Ability to view a random planet which changes every 10 seconds.
  • Ability to see a list of planets with brief information.
  • Ability to get data about the planet with the list of residents.
  • Ability to switch to a resident and read information about him.

Future Improvements

  • Add typing to the project using a typescript.
  • Add unit tests
  • Improve responsiveness of pages and styles
  • Add clearer handling of server errors

This project was bootstrapped with Create React AppView.

Prerequisites

First of all, you will need Node.js of version 12.18.3 or compatible with it, npm version 6.14.6 or compatible, and git 2.25.1 or compatible.

Check if everything is OK by running node -v, npm -v and git --version in the CLI

Available Scripts

In the project directory, you can run:

npm i

This command helps to install all the necessary dependencies from the package.json before starting another actions with the project

npm run 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 run build(predeploy)

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.

npm run eject

If you aren’t satisfied with the build tool and configuration choices, you can eject at any time. This command will remove the single build dependency from your project.

npm run deploy

The predeploy script will run automatically before deploy is run. This command allows you to deploy the project via GitHub Pages from the url with key "homepage" in package.json.

npm run eslint

The eslint script will run ESLint on src/ directory.

Learn More

You can learn more in the Create React App documentation.

star-db's People

Contributors

anna-tsukanova avatar antsukanova avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.