This is a dummy website for company that provides commercial and scientific space travel services

Overview

Space Travel

This is a dummy website for company that provides commercial and scientific space travel services. This application will allow users to book rockets and join selected space missions. You can checkout the demo here

Build with

  • React
  • Redux
  • Thunk
  • Redux-Logger
  • Vanilla JavaScript
  • CSS
  • HTML

Getting Started

Prerequisites

You need to have a browser and this tools installed:

  • git
  • Node

Setup

To get a local copy up and running follow these simple example steps:

$ [email protected]:daudi13/space-travel.git

$ cd space-travel
$ npm i
$ npm start

Usage

To build the production version:

$ npm run build

Authors

đŸ‘€ Ismail Courr

đŸ‘€ David Ouma

đŸ€ Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a ⭐ if you like this project!

📝 License

This project is GPL-3.0 licensed.

Comments
  • Change your Render method in index.js

    Change your Render method in index.js

    Hi, I noticed that you are using React 18 but you aren't using the new createRoot api you need to change that in order to use React 18 features.

    Here's the code

    // Before
    import { render } from 'react-dom';
    const container = document.getElementById('app');
    render(<App tab="home" />, container);
    
    // After
    import { createRoot } from 'react-dom/client';
    const container = document.getElementById('app');
    const root = createRoot(container);
    root.render(<App tab="home" />);
    

    Reference How to Upgrade to React 18

    opened by imshines 1
  • Feature/add wikipedia links

    Feature/add wikipedia links

    • Add Wikipedia links to the name of the mission as an anchor.
    • Add Wikipedia links to the name of the dragons as an anchor.
    • Add Wikipedia links to the name of the rockets as an anchor.
    opened by Ismailco 0
  • Space-Travel final Review

    Space-Travel final Review

    Description

    This project was compiled by a two-people team in the making of the Space-Traveller Application. In this project we:

    • [x] Used the SpaceX API provided to fetch for data for the Rockets and mission page
    • [x] Added reserved Rockets and booked Missions in the Profile page
    • [x] Wrote reducers for both the Rockets and Mission components
    • [x] Added Reserved badge when a user clicked on the reserve rocket button
    • [x] Indicated whether a mission was booked or not
    • [x] Dynamically updated the Profile page whenever a Rocket and a mission were booked
    • [x] Launched the site using Heroku. check the live link here

    Project Requirements

    config & basic setup

    • Create React App.
    • Install React-Redux, Redux Logger and React Routers
    • Download the free image for the App logo
    • Create routes and view components (Rockets, Missions, My Profile, Dragons [only if your team has 3 members]). Use <NavLink /> for the page navigation links and style active class to indicate which section/page user is currently on (underline active navigation link).
    • Create directories for all Redux state slice files (rockets, missions, dragons [only if your team has 3 members]).

    Redux: Fetch data and update Redux Store

    • upon fist render fetch data from the SpaceX API endpoints
      • Rockets: https://api.spacexdata.com/v3/rockets
      • Missions: https://api.spacexdata.com/v3/miss

    Thank you for taking the time to review this Pull Request

    opened by daudi13 0
  • Implement mission leaving action and update the UI

    Implement mission leaving action and update the UI

    • dispatch 'leave' action to the store after the user clicked on 'leave Mission'.
    • Add or change the reserved key to false.
    • Update the button to 'Leave Mission'.
    opened by Ismailco 0
  • Setup My profile section

    Setup My profile section

    @daudi13, This is a base code for the My Profile section, that will need to finish the last task by displaying the missions and rockets inside it, Please review it, and approve it ASAP, so we can use it as a template.

    opened by Ismailco 0
  • Rocket cancellation

    Rocket cancellation

    in this part of the project, I:

    • refactored my code to make the store render only once.
    • Updated the rendering method to the new client rendering method
    • refactored the rocketReducer() function to become more optimised.
    opened by daudi13 0
  • Display rockets

    Display rockets

    In this part of the project, i:

    • Removed the hard-coded array and replaced it with rocket data from store
    • Added props from rocketData
    • fixed typo causing error
    opened by daudi13 0
  • Fetch rockets data

    Fetch rockets data

    in this part of the project I:

    • Added Store folders and rocket action file using the feature folder approach
    • Added async function for Rocket API to fetch Rocket data,
    • Added configuration for the configureStore.js
    • Linked the store to the App
    • Added the reducer actions for the Rocket
    • Added a rocketReducer function
    opened by daudi13 0
  • Add navlink active

    Add navlink active

    In this project, I:

    • Added class active to nav links to highlight which page a user is on
    • Added responsiveness to the navbar
    • Added responsiveness to the navlinks
    • Fixed the proptype issue from the previous PR
    opened by daudi13 0
  • Basic structure for rockets

    Basic structure for rockets

    In this branch I:

    • Created a rocket page
    • temporarily disabled the navbar
    • Styled the page using a mobile first approach
    • Added items dynamically

    I have commented out the navbar on this branch because it wasn't connected to the routers I'll fix it in the next branch seeing already you have installed routers in your last pull request

    opened by daudi13 0
  • [3pt] Implement mission joining - Actions

    [3pt] Implement mission joining - Actions

    • When a user clicks the "Join Mission" button, action needs to be dispatched to update the store. You need to get the ID of the selected mission and update the state. Remember you mustn't mutate the state. Instead, you need to return a new state object with all missions, but the selected mission will have an extra key reserved with its value set to true. You could use a JS filter() or map() to set the value of the new state - i.e.:
    const newState = state.map(rocket => {
        if(mission.id !== id) 
            return mission;
        return { ...mission, reserved: true };
    });
    
    • Regardless of which method you choose, make sure you place all your logic in the reducer. In the React view file, you should only dispatch the action with the correct rocket ID as an argument.
    opened by Ismailco 0
Owner
David Ouma
Front-end Developer | Freelancer | Student at Microverse | Ready to work | Digital Nomad
David Ouma
A web application for a company that provides commercial and scientific space travel services. The application will allow users to book rockets and join selected space missions.

Space Travelers A web application for a company that provides commercial and scientific space travel services. The application will allow users to boo

Hector Torres 2 Apr 6, 2022
This a web application for a company that provides commercial and scientific space travel services. The application will allow users to book rockets, dragons and join selected space missions.

Space Travelers' Hub In this project, we have worked with the real live data from the SpaceX API. Our task was to build a web application for a compan

Apuabi Titilope 4 Oct 31, 2022
This project is a web application for a company that provides commercial and scientific space travel services

Space Traveler's Hub This project is a web application for a company that provides commercial and scientific space travel services.

Selma Belhadj 5 Jun 8, 2022
Build a web application for a company that provides commercial and scientific space travel services

Build a web application for a company that provides commercial and scientific space travel services. The application will allow users to book rockets and join selected space missions

Abraha Kahsay 5 Aug 27, 2022
This web application provides commercial and scientific space travel services. The application allows users to book rockets and join selected space missions.

space-hub About Project "Space Traveler's Hub" is A web application that provides commercial and scientific space travelling services, We are working

Nicholas Emmanuel 7 Nov 2, 2022
In this project we built a web application that consumes an SpaceX API. It provides commercial and scientific space travel services that allows users to book rockets and join selected space missions.

Space Travelers' Hub In this project we built a web application that consumes an SpaceX API. It provides commercial and scientific space travel servic

Diego Yon 7 Sep 30, 2022
This web application provides commercial and scientific space travel services. The application allows users to book rockets and join selected space missions.

Space Traveler's Hub This web application provides commercial and scientific space travel services. The application allows users to book rockets and j

Michael Mesfin 6 Oct 4, 2022
A Travel companion app using Google Maps API, Travel Search and Weather API

Travel Advisor Introduction An advanced Travel Companion Application using Google Maps. With Geolocation, Google Maps API, Searching for places, Fetch

Sunny Bhadani 4 Nov 11, 2022
"Space-Travelers-Hub" is a website that allows users to book rockets and join selected space missions by using data from the SpaceX API.

Space-Travelers-Hub This project was bootstrapped with Create React App. Description "Space-Travelers-Hub" is a website that allows users to book rock

Tresor Sawasawa 4 Mar 13, 2022
Grupprojekt för kurserna 'Javascript med Ramverk' och 'Agil Utveckling'

JavaScript-med-Ramverk-Laboration-3 Grupprojektet för kurserna Javascript med Ramverk och Agil Utveckling. Utvecklingsguide För information om hur utv

Svante Jonsson IT-Högskolan 3 May 18, 2022
Api for playing around with dummy data. Feel free to use it in your demo projects, tutorials, or testing tasks.

dummy-api Api similar to dummy-api Api for playing around with dummy data. Feel free to use it in your demo projects, tutorials, or testing tasks. All

Donald Wu 4 Jan 7, 2023
Hemsida för personer i Sverige som kan och vill erbjuda boende till mÀnniskor pÄ flykt

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

null 4 May 3, 2022
Kurs-repo för kursen Webbserver och Databaser

Webbserver och databaser This repository is meant for CME students to access exercises and codealongs that happen throughout the course. I hope you wi

null 14 Jan 3, 2023
Next.js app using some dummy Tailwind CSS components

This is a Next.js project bootstrapped with create-next-app. Getting Started First, run the development server: npm run dev # or yarn dev Open http://

Claudson Martins 1 Oct 12, 2022
Space Travelers' Hub - a web application that facilitates booking rockets and join selected space missions

This is a web application that facilitates booking rockets and join selected space missions. It is built for a company that offers both commercial and scientific space travel services. The application also works with real live data from the SpaceX API.

Mong'are 6 Mar 29, 2022
Welcome to Space Traveler's HUB, this web app allows the user to take a fictional tour across the space.

Welcome to Space Traveler's HUB, this web app allows the user to take a fictional tour across the space. The user can choose a rocket from our catalog interface, and reserve it. Also, the user can see recent special missions and join them. Finally, the user will be able to keep track of all your rockets and mission they are subscribed to. Build with React, Redux, React-router, and Railwindcss.

Mihreteab Misganaw 3 Jan 27, 2022
Calculates maximum composite SLA for a list of sequentially provided cloud services or your custom-defined services.

SlaMax Calculates maximum composite SLA for a list of sequentially provided cloud services or your custom-defined services. Here are a few use-cases y

Mikael Vesavuori 4 Sep 19, 2022