Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React & Redux group project - Space Travelers' Hub #32

Merged
merged 30 commits into from
Oct 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
c5a1040
project setup
nilab-khwaja Oct 3, 2023
40c4b83
add navbar
nilab-khwaja Oct 3, 2023
60ba6e8
add logo
nilab-khwaja Oct 3, 2023
a6f7618
fetch Rocket data from API
nilab-khwaja Oct 3, 2023
44d2ead
add a button for reservtion and cancel reservation of rocket
nilab-khwaja Oct 3, 2023
051c8e5
add reservation badge
nilab-khwaja Oct 3, 2023
3de9c46
add reserved into profile
nilab-khwaja Oct 3, 2023
9e6aab9
add style folder and apply style for rockets component
nilab-khwaja Oct 4, 2023
5957033
add test file for Rockets and Navbar componenets
nilab-khwaja Oct 5, 2023
1fe5d32
Added/Get Mission-Data from API
evansnyamekye Oct 5, 2023
115a615
Add missions Reducer
evansnyamekye Oct 5, 2023
4188d23
fix eslint error message
evansnyamekye Oct 5, 2023
d132e22
update package files
evansnyamekye Oct 5, 2023
bcc2ad3
modified styles in mission.css
evansnyamekye Oct 5, 2023
cb46b35
Add join Missions to my profile
evansnyamekye Oct 5, 2023
8bfec8e
fix style linters error
evansnyamekye Oct 5, 2023
16a6023
Add Test and created mission.test.js
evansnyamekye Oct 5, 2023
134f4e4
Merge pull request #27 from nilab-khwaja/setup
nilab-khwaja Oct 5, 2023
eaed061
Merge pull request #28 from nilab-khwaja/missions-setup
nilab-khwaja Oct 5, 2023
37f9cc1
Merge branch 'dev' into missions
nilab-khwaja Oct 5, 2023
4ba373c
fix conflict issues
evansnyamekye Oct 5, 2023
3ecbda5
Merge branch 'missions' of https://github.com/nilab-khwaja/space-trav…
evansnyamekye Oct 5, 2023
c4d4cda
Merge pull request #29 from nilab-khwaja/missions
nilab-khwaja Oct 5, 2023
fc8ff0a
Merge branch 'dev' into mission-profile
nilab-khwaja Oct 5, 2023
917dc69
Merge pull request #30 from nilab-khwaja/mission-profile
nilab-khwaja Oct 5, 2023
26eb0b3
Merge pull request #31 from nilab-khwaja/testing
nilab-khwaja Oct 5, 2023
49afe14
update readme
nilab-khwaja Oct 5, 2023
f7c396d
Update README.md
nilab-khwaja Oct 5, 2023
9590071
modify code after review
nilab-khwaja Oct 6, 2023
0f6d782
Merge branch 'dev' of https://github.com/nilab-khwaja/space-travelers…
nilab-khwaja Oct 6, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"presets": [
"@babel/preset-react"
],
"plugins": ["@babel/plugin-syntax-jsx"]
}
35 changes: 35 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"env": {
"browser": true,
"es6": true,
"jest": true
},
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module"
},
"extends": ["airbnb", "plugin:react/recommended", "plugin:react-hooks/recommended"],
"plugins": ["react"],
"rules": {
"react/jsx-filename-extension": ["warn", { "extensions": [".js", ".jsx"] }],
"react/react-in-jsx-scope": "off",
"import/no-unresolved": "off",
"no-shadow": "off"
},
"overrides": [
{
// feel free to replace with your preferred file pattern - eg. 'src/**/*Slice.js' or 'redux/**/*Slice.js'
"files": ["src/**/*Slice.js"],
// avoid state param assignment
"rules": { "no-param-reassign": ["error", { "props": false }] }
}
],
"ignorePatterns": [
"dist/",
"build/"
]
}
45 changes: 45 additions & 0 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Linters

on: pull_request

env:
FORCE_COLOR: 1

jobs:
eslint:
name: ESLint
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "18.x"
- name: Setup 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-env@7.x @babel/preset-react@7.x
[ -f .eslintrc.json ] || wget https://raw.githubusercontent.com/microverseinc/linters-config/master/react-redux/.eslintrc.json
[ -f .babelrc ] || wget https://raw.githubusercontent.com/microverseinc/linters-config/master/react-redux/.babelrc
- name: ESLint Report
run: npx eslint "**/*.{js,jsx}"
stylelint:
name: Stylelint
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "18.x"
- name: Setup Stylelint
run: |
npm install --save-dev stylelint@13.x stylelint-scss@3.x stylelint-config-standard@21.x stylelint-csstree-validator@1.x
[ -f .stylelintrc.json ] || wget https://raw.githubusercontent.com/microverseinc/linters-config/master/react-redux/.stylelintrc.json
- name: Stylelint Report
run: npx stylelint "**/*.{css,scss}"
nodechecker:
name: node_modules checker
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Check node_modules existence
run: |
if [ -d "node_modules/" ]; then echo -e "\e[1;31mThe node_modules/ folder was pushed to the repo. Please remove it from the GitHub repository and try again."; echo -e "\e[1;32mYou can set up a .gitignore file with this folder included on it to prevent this from happening in the future." && exit 1; fi
23 changes: 23 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
20 changes: 20 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"extends": ["stylelint-config-standard"],
"plugins": ["stylelint-scss", "stylelint-csstree-validator"],
"rules": {
"at-rule-no-unknown": [
true,
{
"ignoreAtRules": ["tailwind", "apply", "variants", "responsive", "screen"]
}
],
"scss/at-rule-no-unknown": [
true,
{
"ignoreAtRules": ["tailwind", "apply", "variants", "responsive", "screen"]
}
],
"csstree/validator": true
},
"ignoreFiles": ["build/**", "dist/**", "**/reset*.css", "**/bootstrap*.css", "**/*.js", "**/*.jsx"]
}
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 Nilab Khwajazada

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
152 changes: 151 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,151 @@
# space-travelers-hub
<a name="readme-top"></a>

<div align="center">
<h3><b>Space Travlers' Hub</b></h3>
</div>

# 📗 Table of Contents

- [📗 Table of Contents](#-table-of-contents)
- [📖 Space-Travlers-Hub](#-space_travler_hub)
- [🛠 Built With ](#-built-with-)
- [Tech Stack ](#tech-stack-)
- [Key Features ](#key-features-)
- [💻 Getting Started ](#-getting-started-)
- [Prerequisites](#prerequisites)
- [Setup](#setup)
- [Usage](#usage)
- [Run tests](#run-tests)
- [👥 Author(s) ](#-authors-)
- [🔭 Future Features ](#-future-features-)
- [🤝 Contributing ](#-contributing-)
- [⭐️ Show your support ](#️-show-your-support-)
- [🙏 Acknowledgments ](#-acknowledgments-)
- [📝 License ](#-license-)

# 📖 Space Travelers' Hub<a name="about-project"></a>

Space Travelors' Hub is an application that allows users to see data from API, reserve rocket, cancel reservation, join mission, leave mission and see the profile.

## 🛠 Built With <a name="built-with"></a>

### Tech Stack <a name="tech-stack"></a>

- Reactjs
- CSS
- Redux
- BootStrap

### Key Features <a name="key-features"></a>

- [ ] **Reserve Rocket**
- [ ] **Cancel Reservation**
- [ ] **Join Mission**
- [ ] **Leave Mission**

<p align="right">(<a href="#readme-top">back to top</a>)</p>

## 💻 Getting Started <a name="getting-started"></a>

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

### Prerequisites

In order to run this project you need:

- a browser
- git
- nodejs

### Setup

Clone this repository to your desired folder:

```sh
cd my-folder
git clone https://github.com/nilab-khwaja/space-travelers-hub.git
npm install
```

### Usage

To run the project, execute the following command:

```sh
npm run start
```

### Run tests

To run tests, run the following commands:

```sh
npm run stylelint
npx hint .
npm run eslint .
npm run test
```

<p align="right">(<a href="#readme-top">back to top</a>)</p>

### Deployment

- I used Render to deploy my website
- For more information about publishing sources, see "[About render](https://render.com/docs)"


<p align="right">(<a href="#readme-top">back to top</a>)</p>

<!-- AUTHORS -->

## 👥 Authors <a name="authors"></a>

>

👤 **Author1**

- GitHub: [@nilab-khwaja](https://github.com/nilab-khwaja)
- Twitter: [@nilab](https://x.com/NilabKhwajazada?t=hEkqy2CCNFOIfGtbmD2gLA&s=35)
- LinkedIn: [@nilab-khwajazada](https://www.linkedin.com/in/nilab-khwajazada)

👤 **Author2**

- GitHub: [evansnyamekye](https://github.com/evansnyamekye)
- Twitter: [@nyamekye2131](https://twitter.com/nyamekye2131)
- LinkedIn: [Evans Kofi Nyamekye](https://www.linkedin.com/in/evans-kofi-nyamekye-1980a4117/)



<p align="right">(<a href="#readme-top">back to top</a>)</p>

## 🔭 Future Features <a name="future-features"></a>

- [ ] **Add a Dragon tab**

<p align="right">(<a href="#readme-top">back to top</a>)</p>

## 🤝 Contributing <a name="contributing"></a>

Contributions, issues, and feature requests are welcome!

Feel free to check the [issues page](https://github.com/nilab-khwaja/space-traveler-hub/issues).

<p align="right">(<a href="#readme-top">back to top</a>)</p>

## ⭐️ Show your support <a name="support"></a>

If you like this project give me a follow and/or a star

<p align="right">(<a href="#readme-top">back to top</a>)</p>

## 🙏 Acknowledgments <a name="acknowledgements"></a>

We would like to thank all my coding partners at Microverse

<p align="right">(<a href="#readme-top">back to top</a>)</p>

## 📝 License <a name="license"></a>

This project is [MIT](./LICENSE) licensed.

<p align="right">(<a href="#readme-top">back to top</a>)</p>
Loading