"Space-Travelers-Hub" is a website that allows users to book rockets and join selected space missions by using data from the SpaceX API.

Overview

Space-Travelers-Hub

This project was bootstrapped with Create React App.

math-magicians

Description

"Space-Travelers-Hub" is a website that allows users to book rockets and join selected space missions by using data from the SpaceX API.

Built With

This project is built with:

  • React
  • Redux
  • JavaScript
  • HTML
  • Sass

Live Demo

Click here to see the live demo

Getting Started

To get the content of this project locally you need to run these commands in your terminal. Before starting the steps below, be sure you have Git and Node.js installed in your computer.

  1. git clone https://github.com/tresorsawasawa/space-travelers-hub
  2. cd space-travelers-hub
  3. npm install This will download all the dependancies of the project.
  4. npm start The page will open at http://localhost:3000 in your browser.

Builds the app for production

npm run build

It correctly bundles React in production mode and optimizes the build for the best performance.

Test

For tracking linter errors locally you need to follow these steps:

  • After cloning the project make sure you have run this command

    npm install command

  • For tracking the linter errors in HTML file run:

    npx hint .

  • For tracking the linter errors in CSS file run:

    npx stylelint "\*_/_.{css,scss}"

  • For tracking the linter errors in JavaScript file run:

    npx eslint .

  • And For running some unit tests:

    npm test

Authors

👤 Trésor Sawasawa

👤 Kandy Peter

🤝 Contributing

Feel free to check the issues page

Show your support

Give a if you like this project!

Acknowledgments

  • Thanks to everyone who will get time to check this code especially to code reviewers.

📝 License

This project is MIT licensed.

Comments
  • Implement mission joining and leaving action

    Implement mission joining and leaving action

    #10

    • [ ] When a user clicks the "Join Mission" button, an action is dispatched to update the store. It gets the ID of the selected mission and updates the state.
    • [ ] A new state object is returned with all missions.
    • [ ] I used the map() method to set the value of the new state.

    #9

    • [ ] Follow the same logic as with the "Join mission" - but the action resets the reserved key to false.
    • [ ] Dispatch these actions upon clicking on the corresponding buttons.
    opened by Kandy-Peter 2
  • Space Travelers Hub

    Space Travelers Hub

    In this pull request, we implemented the following elements:

    • [ ] Install React-redux, redux-thunk, redux-logger.
    • [ ] Create routes and view components (Rockets, Missions, My Profile).
    • [ ] Use <NavLink /> for the page navigation links and style active class to indicate which section/page the 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
    • [ ] Use useSelector() Redux Hook to select the state slices and render lists of rockets and missions in corresponding routes.
    • [ ] We used map to set the value of the new state.
    • [ ] Usage of filter() method to display reserved Rockets and Missions to the profile page.
    • [ ] Fixe Linters errors, bugs and resolve conflicts.
    opened by Kandy-Peter 1
  • Switch Badges For Rockets

    Switch Badges For Rockets

    • [ ] Added some logic to Rockets that have already been reserved to show a "Reserved" badge and "Cancel reservation" button instead of the default "Reserve rocket" (as per design). By using the React conditional rendering syntax: {rocket.reserved && ( // render Cancel Rocket button )}
    opened by tresorsawasawa 1
  • Fetch Rockets From API

    Fetch Rockets From API

    Below are tasks I filled out in this PR:

    • [ ] Fetch data from the Rockets endpoint when the application starts (as Rockets is the default view). Once the data are fetched, dispatch an action to store the selected data in Redux store:
    • id
    • name
    • type
    • flickr_images

    NOTE: Make sure you only dispatch those actions once and do not add data to store on every re-render (i.e. when changing views / using navigation).

    opened by tresorsawasawa 1
  • create redyx file for missions

    create redyx file for missions

    In this pull request I implemented the following tasks:

    1. Create a route and a view component. Use for the page navigation links and style active class to indicate which section/page the user is currently on (underline active navigation link).
    2. Create a directory for all Redux state slice files.
    opened by Kandy-Peter 1
  • Create directory for rockets state slice file

    Create directory for rockets state slice file

    • [ ] Create a directory for all Redux state slice files.
    • [ ] Use <NavLink /> for the page navigation links and style active class to indicate which section/page the user is currently on (underline active navigation link). (Used in the previous task)
    opened by tresorsawasawa 1
  • Kanban board

    Kanban board

    • [ ] Project link: https://github.com/tresorsawasawa/Space-Travelers-Hub/projects/2

    • [ ] This team is composed of two members:

    • @Kandy-Peter

    • @tresorsawasawa

    opened by tresorsawasawa 1
  • Merge pull request #47 from tresorsawasawa/development

    Merge pull request #47 from tresorsawasawa/development

    • [ ] Install React-redux, redux-thunk, redux-logger.
    • [ ] Create routes and view components (Rockets, Missions, My Profile).
    • [ ] Use for the page navigation links and style active class to indicate which section/page the 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
    • [ ] Use useSelector() Redux Hook to select the state slices and render lists of rockets and missions in corresponding routes
    • [ ] We used the map() method to set the value of the new state.
    • [ ] Usage of filter() method to display reserved Rockets and Missions to the profile page.
    opened by tresorsawasawa 0
  • add mission badges

    add mission badges

    In this pull request, I added the following functionalities

    • Missions that the user has joined already shows a badge "Active Member" instead of the default "NOT A MEMBER"
    • Button "Leave Mission" instead of the "Join Mission" button (as per design).
    opened by Kandy-Peter 0
  • Cancel Rocket Booking

    Cancel Rocket Booking

    • [ ] Implement CANCEL_ROCKET_BOOKING action
    • [ ] Added functionality when a user clicks the "Cancel Reservation" button, action is dispatched to update the store, get the ID of the reserved rocket and update the state.
    • [ ] Return a new state object with all rockets, but the selected rocket has an extra key reserved with its value set to true.
    • [ ] Use map() to set the value of the new state.
    • [ ] Dispatch the action with the correct rocket ID as an argument.
    opened by tresorsawasawa 0
  • display missions to the screen.

    display missions to the screen.

    For this task, I implemented the following elements:

    • Use useSelector() Redux Hook to select the state slices and render lists of missions in corresponding routes.
    • I added style to the whole page "by hand" as per design
    opened by Kandy-Peter 0
Owner
Tresor Sawasawa
I'm a Web Developer. Technologies: JavaScript | HTML | CSS | React | Redux. Open to new opportunities. Learning React
Tresor Sawasawa
"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
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
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
A Web application that showcases Rockets and Missions from the SpaceX API, you can reserve Rockets and join Missions to your profile.

Space Travelers' Hub Project that showcases Rockets and missions from the SpaceX API, the user can reserve Rockets and join Missions, and save them in

David Vergaray 9 Apr 17, 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
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 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 application allows you to book missions and rockets with Elon Musk's company, SpaceX

Space Traveler's Hub This is an application built to book missions and rockets from SpaceX You can both join and leave missions, reserve and cancel re

Santiago Velosa 4 Jun 13, 2022
"Space Travelers' Hub" This project will lay foundations for your understanding the new features for Redux, using slice reducer and API requires with createAsyncThunk

Space Travelers' Hub Space Travelers' Hub React - Redux "Space Travelers' Hub" This project will lay foundations for your understand new features for

Hendrid Gonzalez 5 Mar 6, 2022
The Bookstore is a website that allows the user to :display a list of books , Add a book and remove a selected book.

Book Store The Bookstore is a website that allows the user to : -Display a list of books. -Add a book. -Remove a selected book. Built With ?? Basic CS

Nedjwa Bouraiou 4 Sep 6, 2022
This is an app that displays a list of books, allow users add a book and remove a selected book.

BookStore This is an app that displays a list of books, allow users add a book and remove a selected book. Built With HTML CSS -React -Redux -JavaScri

ABDUL ALI 5 Jul 22, 2022
A single-page application that allows users to keep track of their books. Users can add the book details (book title and author) and also, and the books can also be removed. Built with JavaScript, HTML, and CSS

Project Name Awesome book with ES6 Description the project. This is a single page application that allows users to keep track of their books. Users ca

Micheal Oguntayo 4 Oct 13, 2022
The Bookstore is a website where the user can display a list of books, add a book by providing a title, an author, and selecting from the categories, and remove a selected book.

Bookstore The Book Store is a website where the user can display a list of books, add a book and remove a selected book. Microverse's Bookstore API wa

Virag Kormoczy 9 Jan 1, 2023
Space-x is a web application the is working with the real live data from the SpaceX API

Project Name : Space-x Traveler Hub Space-x is a web application for a company that provides commercial and scientific space travel services. The appl

Chris Siku 12 Aug 22, 2022
AweSome Book App displays the book details entered by user and saves the information in Local storage. User can add and remove a book title/author to the library and from the library.

Awesome Book App with ES6 Used npm init -y command to create package.json file. Created the entry point for the JavaScript code called index.js Create

Krishna Prasad Acharya 8 Aug 15, 2022
This is a single page web application that keeps tracks of books. Book details captured are the book title, author and ISBN. User can add a book, view a list of books and also remove any un wanted books.

Project Name This is a single page web application that keeps tracks of books. Book details captured are the book title, author and ISBN. User can add

Olivier 6 Nov 20, 2022