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

Milestone 12 : Project submission (Pair-programming) #36

Merged
merged 45 commits into from Jul 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
2387e5c
Install all dependencies
Chrissiku Jul 18, 2022
0541c99
Configure linter and add some basic styling to the project
Chrissiku Jul 18, 2022
f5333c5
Merge pull request #26 from Chrissiku/init-project
Chrissiku Jul 18, 2022
411d811
Implement the Navbar using bootstrap and css
Chrissiku Jul 18, 2022
a9c815e
Split Header component into multiple jsx components'
Chrissiku Jul 18, 2022
13eb524
Create component for Rockets's page, Missios's page and profile's page
Chrissiku Jul 18, 2022
31e6a9b
Configure store
Chrissiku Jul 18, 2022
53b24c1
Create Rockets reducer and default actions
Chrissiku Jul 18, 2022
60cc7d6
Fetch data from rockets API
Chrissiku Jul 18, 2022
8607294
Fetch Rockets from rockets API and render data into the component
Chrissiku Jul 18, 2022
53d6466
Merge pull request #27 from Chrissiku/basic-structure-rocket
Chrissiku Jul 18, 2022
a283f5a
Style the main container for rockets container
Chrissiku Jul 18, 2022
76befd0
Create Missions basic structure
Graycemuthui Jul 18, 2022
b62d298
Merge branch 'dev' into fetch-rockets
Chrissiku Jul 18, 2022
74c39f7
Merge branch 'dev' into missions-structure
Graycemuthui Jul 18, 2022
c25f6a1
Merge pull request #28 from Chrissiku/missions-structure
Graycemuthui Jul 18, 2022
79c804c
Merge pull request #29 from Chrissiku/fetch-rockets
Chrissiku Jul 18, 2022
035642d
Fix linters
Graycemuthui Jul 18, 2022
fcdb7e4
Add reserve rocket action
Chrissiku Jul 18, 2022
0daa35a
Add event Hanlder for the reserve rocket action
Chrissiku Jul 18, 2022
3b3acdc
Add cancel reservation action
Chrissiku Jul 18, 2022
83a8720
Add event Handler for the cancel reservation action
Chrissiku Jul 18, 2022
7ec566b
Style on small sceen
Chrissiku Jul 18, 2022
ca3fef7
Create object to filter profile infos
Chrissiku Jul 18, 2022
0f5aab0
Import necessary bootstrap
Chrissiku Jul 18, 2022
94c8e6d
Implement the profile reserved rockek column
Chrissiku Jul 18, 2022
d121210
Fetch items from Api
Graycemuthui Jul 18, 2022
f0421a4
Merge pull request #30 from Chrissiku/rockets-booking
Chrissiku Jul 19, 2022
ec812eb
Merge pull request #31 from Chrissiku/profile-reserved-rocket
Chrissiku Jul 19, 2022
cddde80
Merge branch 'dev' of https://github.com/Chrissiku/Space-x into dev
Graycemuthui Jul 19, 2022
f177433
implemenet the mission reducer
Graycemuthui Jul 19, 2022
8a04c2d
connect reducer tot he store
Graycemuthui Jul 19, 2022
fc8175f
rendered the missions
Graycemuthui Jul 19, 2022
34bcab0
Merge branch 'dev' into fetch-api
Graycemuthui Jul 19, 2022
0af7869
Merge pull request #32 from Chrissiku/fetch-api
Graycemuthui Jul 19, 2022
60e8f6f
Create eventhandlers for the buttons
Graycemuthui Jul 19, 2022
9482298
Merge pull request #33 from Chrissiku/event-handlers
Graycemuthui Jul 19, 2022
41352f4
Add Mission to profile section
Graycemuthui Jul 19, 2022
ce5168e
Merge pull request #34 from Chrissiku/profile-join-missions
Graycemuthui Jul 19, 2022
4b92649
Create tests for the mission componentr
Graycemuthui Jul 19, 2022
62488b3
Create test for the Rockets component
Chrissiku Jul 19, 2022
78471f8
Create tests for profile component
Graycemuthui Jul 19, 2022
940c3a8
Use `<NavLink />` for the page navigation links and style active class
Chrissiku Jul 19, 2022
18d5368
Update Readme file
Chrissiku Jul 19, 2022
bb10669
Merge pull request #35 from Chrissiku/testing
Chrissiku Jul 19, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions .babelrc
@@ -0,0 +1,6 @@
{
"presets": [
"@babel/preset-react"
],
"plugins": ["@babel/plugin-syntax-jsx"]
}
27 changes: 27 additions & 0 deletions .eslintrc.json
@@ -0,0 +1,27 @@
{
"env": {
"browser": true,
"es6": true,
"jest": true
},
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module"
},
"extends": ["airbnb", "plugin:react/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"
},
"ignorePatterns": [
"dist/",
"build/"
]
}
36 changes: 0 additions & 36 deletions .github/workflows/blank.yml

This file was deleted.

45 changes: 45 additions & 0 deletions .github/workflows/linters.yml
@@ -0,0 +1,45 @@
name: Linters

on: pull_request

env:
FORCE_COLOR: 1

jobs:
eslint:
name: ESLint
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: "12.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 . --fix
stylelint:
name: Stylelint
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: "12.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}" --fix
nodechecker:
name: node_modules checker
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- 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
@@ -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
@@ -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"]
}
88 changes: 45 additions & 43 deletions README.md
@@ -1,73 +1,75 @@
![](https://img.shields.io/badge/Microverse-blueviolet)

# Project Name

> Description the project.
# Project Name : Space-x Traveler Hub

>[Space-x](https://space-x-traveler.netlify.app/) is a web application for a company that provides commercial and scientific space travel services. The application is with the real live data from the SpaceX API and allow users to book rockets and join selected space missions.
>
>
## Project view

![Screen](https://user-images.githubusercontent.com/101924220/179762369-de3f9ec2-9a9f-4bcb-8dd9-a39f151f6b79.png)

> In order to achieve this project I used some resources and technologies listed below :
## Built With

- Major languages
- Frameworks
- Technologies used

## Live Demo (if available)
- Major languages : JavaScript , JSX and CSS
- Promise based HTTP : `axios`
- Toolchain : `Babel`
- Library and Framework : `React, React-redux, Jest, React-test-renderer`
- Technologies used : Github, Git, Gitflow and Linters

[Live Demo Link](https://livedemo.com)
## Live Demo (Not ava)

Click [Here](https://space-x-traveler.netlify.app/) To open the live demo

## Getting Started

**This is an example of how you may give instructions on setting up your project locally.**
**Modify this file to match your project, remove sections that don't apply. For example: delete the testing section if the currect project doesn't require testing.**
To get a local copy up and running follow these simple example steps.

### Prerequisites ♻️

To get a local copy up and running follow these simple example steps.
- A personal computer connected to the internet;
- Have a working and updated browser.
- Have a local version control like git installed on your computer
- Have an account on Github, as an online/remote Version Control System
- Code editor (Visual studio code, sublime text, notepad++, ...) installed on your computer;
- To be okay with javaScript ES6
- Knowledge of HTML and CSS.

### Prerequisites
### Setup 🎰

### Setup
- Click the [me](https://github.com/Chrissiku/Space-x) and you'll land on the pure repository;
- click on the green (🟢) button with `Code` Inscription;
- You can choose to download the project or just clone it if you are familiar with Git and Github;
- Follow normal step once download in your computer and use it as it's yours.

### Install

### Usage

### Run tests
- If you are familiar with git, Run `npm install` to get all dependencies required to run the linters checks, otherwise use the downloaded project on your computer without testing files

### Deployment
### Run test 🧪

> Run the command bellow inside your `git bash` or command line interface..

- `npm run start` : to run the project in your default web Browser
- `npx stylelint "**/*.{css,scss}"` : for the `css` codebase and use of best practices. you can add
- `npx eslint .` : for the `JavaScript` codebase and use of best practices
- > Note that you can add `--fix` keyword to the command for `Css` and/or `JavaScript` to make sure that you avoid all errors coming from your `code editor`

## Authors
## Author

👤 **Author1**
👤 **Chris Siku**

- GitHub: [@githubhandle](https://github.com/githubhandle)
- Twitter: [@twitterhandle](https://twitter.com/twitterhandle)
- LinkedIn: [LinkedIn](https://linkedin.com/in/linkedinhandle)
- GitHub: [@githubhandle](https://github.com/Chrissiku)
- Twitter: [@twitterhandle](https://twitter.com/christian_siku)
- LinkedIn: [LinkedIn](https://www.linkedin.com/in/chris-siku-4bb53b232/)

👤 **Author2**
👤 **Grace Muthui**

- GitHub: [@githubhandle](https://github.com/githubhandle)
- Twitter: [@twitterhandle](https://twitter.com/twitterhandle)
- LinkedIn: [LinkedIn](https://linkedin.com/in/linkedinhandle)
- GitHub: [@Grayce Muthui](https://github.com/Graycemuthui)
- Twitter: [@Grayce_Muthui](https://twitter.com/Grayce_Muthui)
- LinkedIn: [@Grayce Muthui](https://www.linkedin.com/in/grayce-muthui/)

## 🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the [issues page](../../issues/).

## Show your support

Give a ⭐️ if you like this project!

## Acknowledgments

- Hat tip to anyone whose code was used
- Inspiration
- etc

## 📝 License

This project is [MIT](./MIT.md) licensed.
Binary file removed app_screenshot.png
Binary file not shown.