- The Space Travelers' Hub
- [📗 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:
- Reserve/ Cancel Rockets fetched from the SpaceX API.
- Reserve/ Cancel Missions fetched from the SpaceX API.
- See All the selected Rockets & Missions in the My Profile Section.
This project was bootstrapped with Create React App. -Available Scripts In the project directory, you can run:
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.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
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.
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.
Client
- React- Components
- Events
- Fetch data from API
- Test
- Deploy
Server
- Can be deployed using Render or similar cloud services.
Database
- N/A
- Use of React Components
- Use of Events
- Use of API to fetch data
- Use of React Redux (e.g store, reducers, actions)
Please follow the link for a live demo.
To get a local copy up and running, follow these steps.
In order to run this project you need:
- Git.
- An IDE (e.g. VS Code)
- Browser to run.
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)
To run the project, execute the following command:
- Open the index.html file on a local server on your browser.
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
- 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
- Copy .eslintrc.json and .babelrc to the root directory of your project.
- Run
npx eslint "**/*.{js,jsx}"
on the root of your directory of your project. - Fix linter errors. For more on ESLint & autocorrent options, click here
For Stylelint
- Run
npm install --save-dev stylelint@13.x stylelint-scss@3.x stylelint-config-standard@21.x stylelint-csstree-validator@1.x
- Copy .stylelintrc.json to the root directory of your project.
- Run
npx stylelint "**/*.{css,scss}"
on the root of your directory of your project. - Fix linter errors. For more on Stylelint & autocorrent options, click here
Developed by:
- GitHub: @porag-m06
- Improve Aesthetics & Design
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
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.
I would like to thank Microverse for this project & project guidelines.
-
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.
This project is MIT licensed.