Giter Club home page Giter Club logo

starwarsapp's Introduction

StarWarsApp

StarWarsApp is a mobile application made with ReactNative library who you can watch the some differents starships, pilots and their description, from the Star Wars saga.

home screen

starships screen

pilot screen

journey screen

Run it locally

  1. Install Expo CLI
[sudo] yarn global add expo-cli | npm install -g expo-cli
  1. Clone the project StarWarsApp
git clone https://github.com/romgrm/StarWarsApp.git
  1. Install dependencies
cd StarWarsApp
yarn install | npm install
  1. Run the app
yarn start | npm start

You can run the app on your devices (android|iphone) or on the web with following expo steps. The project was developed with a mobile language so it is more suitable to see it on a mobile format (F12 => IphoneX)

IDEA OF THE PROJECT

  • The goal is to consume the SWAPI API in order to display a list of starships, as well as their pilots.
  • To add a bit of difficulty, I chose to do a sort of route with the selection of a starship, then a pilot, to arrive at a final summary.
  • All with a design reminiscent of the star wars universe

TECHNICAL PARTS

  • I chose to use React Native because it is my favorite language and for this kind of project it is perfectly suited
  • Another difficulty, I had never used RN with Typescript until this project but for the challenge I did.
  • I made a classic architecture: screens, powered by components, typed by interfaces with a transmission of parent / child and global state properties.
  • I could have used different global states with the API context for each data (starships, pilots ...) but that added code for an app that is not called to evolve and where all the screens are linked with a logic parent / child, therefore not really of interest.
  • I used react navigation and react native elements as the main library.

IMPROVEMENT

  • I would have liked to have made a cleaner, MVC-style architecture, a bit like Angular, where my services contain my business logic and my screens display just the view, but I didn't have a lot of time and I found myself stuck with browsing and passing parent / child props with this type of architecture, so I went back to the basic one.
  • I would have liked to improve the css, in particular the swipeable elements to correspond more to a mobile app but I do not know on which display the app will be read so I did it as easy as possible.
  • Finally, when I have more time, I would test this exercise with Angular, I'm sure that with observables and service injections, fetching and data transmission will be much easier.

starwarsapp's People

Contributors

romgrm avatar

Watchers

 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.