/The-Space-Travelers-Hub

Primary LanguageJavaScriptMIT LicenseMIT

The-Space-Travelers-Hub


The-Space-Travelers-Hub

Using the SpaceX API, The Space Travelers' Hub is a web application for an imaginary company that provides commercial and scientific space travel services. Consisting of Rockets, Missions, and a My Profile section, this application allows users to book rockets and join selected space missions.

📗 Table of Contents

📖 The Space Travelers' Hub

Using the SpaceX API, "The Space Travelers' Hub" is a web application for an imaginary company that provides commercial and scientific space travel services.

Consisting of Rockets, Missions, and a My Profile section, this application allows users to:

  1. Reserve/ Cancel Rockets fetched from the SpaceX API.
  2. Reserve/ Cancel Missions fetched from the SpaceX API.
  3. See All the selected Rockets & Missions in the My Profile Section.

🛠 Built With React

React Instructions

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

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.

The page will reload when you make changes.
You may also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

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

Note: this is a one-way operation. Once you eject, you can't go back!

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.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own.

You don't have to ever use eject. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.

Tech Stack

Client - React
  • Components
  • Events
  • Fetch data from API
  • Test
  • Deploy
Server
  • Can be deployed using Render or similar cloud services.
Database
  • N/A

Key Features

  • Use of React Components
  • Use of Events
  • Use of API to fetch data
  • Use of React Redux (e.g store, reducers, actions)

(back to top)

🚀 Live Demo

Please follow the link for a live demo.

(back to top)

💻 Getting Started

To get a local copy up and running, follow these steps.

Prerequisites

In order to run this project you need:

  • Git.
  • An IDE (e.g. VS Code)
  • Browser to run.

Setup

Clone this repository to your desired folder:

  • Using Git Bash or any integrated terminal of you choice.
  • Open with code editor (e.g. VS Code).
  • Open the index.html file using any local server (e.g. live server extension in VS Code)

Usage

To run the project, execute the following command:

  • Open the index.html file on a local server on your browser.

To add dependencies and run linter tests

Follow the following:


Initial Step:


  • mkdir .github/workflows
  • copy the linters.yml file to the directory created above.
  • touch .gitignore if not created already and add node_modules/ to it.
  • initialize npm to create package.json file by running the command:

$ npm i -y


ESLint


  1. Run
    npm install --save-dev eslint@7.x eslint-config-airbnb@18.x eslint-plugin-import@2.x eslint-plugin-jsx-a11y@6.x eslint-plugin-react@7.x eslint-plugin-react-hooks@4.x @babel/eslint-parser@7.x @babel/core@7.x  @babel/plugin-syntax-jsx@7.x  @babel/preset-react@7.x @babel/preset-react@7.x
    
  2. Copy .eslintrc.json and .babelrc to the root directory of your project.
  3. Run npx eslint "**/*.{js,jsx}" on the root of your directory of your project.
  4. Fix linter errors. For more on ESLint & autocorrent options, click here

For Stylelint


  1. Run
    npm install --save-dev stylelint@13.x stylelint-scss@3.x stylelint-config-standard@21.x stylelint-csstree-validator@1.x
    
  2. Copy .stylelintrc.json to the root directory of your project.
  3. Run npx stylelint "**/*.{css,scss}" on the root of your directory of your project.
  4. Fix linter errors. For more on Stylelint & autocorrent options, click here

(back to top)

👥 Author

Developed by:

Authors

(back to top)

🔭 Future Features

  • Improve Aesthetics & Design

(back to top)

🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

(back to top)

⭐️ Show your support

As a tech enthusiast, your support is always appreciated. If you like this project please do let me know with your support in any way you see fit.

(back to top)

🙏 Acknowledgments

I would like to thank Microverse for this project & project guidelines.

(back to top)

❓ FAQ

  • Can I fork this project?

    • Yes, feel free to fork and knock yourself out :) .
  • Can I share this project with others?

    • Yes, you can share this project for any educational purposes.

(back to top)

📝 License

This project is MIT licensed.

(back to top)