Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32 from MahdiSohaily/development
JS Capstone Project
- Loading branch information
Showing
44 changed files
with
19,679 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"env": { | ||
"test": { | ||
"plugins": ["@babel/plugin-transform-modules-commonjs"] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"es6": true, | ||
"jest": true | ||
}, | ||
"parser": "babel-eslint", | ||
"parserOptions": { | ||
"ecmaVersion": 2018, | ||
"sourceType": "module" | ||
}, | ||
"extends": ["airbnb-base"], | ||
"rules": { | ||
"no-shadow": "off", | ||
"no-param-reassign": "off", | ||
"eol-last": "off", | ||
"import/extensions": [ 1, { | ||
"js": "always", "json": "always" | ||
}] | ||
}, | ||
"ignorePatterns": [ | ||
"dist/", | ||
"build/" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
name: Linters | ||
|
||
on: pull_request | ||
|
||
env: | ||
FORCE_COLOR: 1 | ||
|
||
jobs: | ||
lighthouse: | ||
name: Lighthouse | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: "12.x" | ||
- name: Setup Lighthouse | ||
run: npm install -g @lhci/cli@0.7.x | ||
- name: Lighthouse Report | ||
run: lhci autorun --upload.target=temporary-public-storage --collect.staticDistDir=. | ||
webhint: | ||
name: Webhint | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: "12.x" | ||
- name: Setup Webhint | ||
run: | | ||
npm install --save-dev hint@7.x | ||
[ -f .hintrc ] || wget https://raw.githubusercontent.com/microverseinc/linters-config/master/html-css-js/.hintrc | ||
- name: Webhint Report | ||
run: npx hint . | ||
stylelint: | ||
name: Stylelint | ||
runs-on: ubuntu-22.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/html-css-js/.stylelintrc.json | ||
- name: Stylelint Report | ||
run: npx stylelint "**/*.{css,scss}" | ||
eslint: | ||
name: ESLint | ||
runs-on: ubuntu-22.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-base@14.x eslint-plugin-import@2.x babel-eslint@10.x | ||
[ -f .eslintrc.json ] || wget https://raw.githubusercontent.com/microverseinc/linters-config/master/html-css-js/.eslintrc.json | ||
- name: ESLint Report | ||
run: npx eslint . | ||
nodechecker: | ||
name: node_modules checker | ||
runs-on: ubuntu-22.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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,88 @@ | ||
# JS-capston | ||
# JS-capstone | ||
## Table of contents | ||
|
||
- [Overview](#overview) | ||
- [The challenge](#the-challenge) | ||
- [Screenshot](#screenshot) | ||
- [Links](#links) | ||
- [Project Setup](#Setup-Project) | ||
- [commands](#command) | ||
- [My process](#my-process) | ||
- [Built with](#built-with) | ||
- [What I learned](#what-i-learned) | ||
- [Continued development](#continued-development) | ||
- [Useful resources](#useful-resources) | ||
- [Author](#author) | ||
- [Acknowledgments](#acknowledgments) | ||
|
||
## Overview | ||
This project is the capstone for module two of Microverse Bootcamp and has been done as a team and covered the following topics: | ||
- Connections to external APIs | ||
- Testing program functionalities using Jest | ||
- Displaying some products in to the UI | ||
- Added like and Comment features to the App | ||
- Added popup window with more data about an item that you can use to comment the products and also see a list of comments | ||
- Displaying the number of likes and comments for each product | ||
|
||
https://user-images.githubusercontent.com/50738922/197218195-92c2f6bb-0368-45a2-ba53-6ba79c2575ef.mp4 | ||
|
||
### Screenshot | ||
|
||
|
||
| Desktop version | Mobile Version | Mobile Version | | ||
| -------------------------------------------- | :-----------------------------------------: | ----------------------------------------- | | ||
| ![Solution Screenshot](./design/desktop.png) | ![Solution Screenshot](./design/mobile.png) | ![Solution Screenshot](./design/mobile2.png)| | ||
|
||
## Live Demo | ||
[MahdiSohaily.github.io/JS-capstone/](MahdiSohaily.github.io/JS-capstone/) | ||
### Prerequisites | ||
|
||
For this project you must have node.js installed. | ||
|
||
### Setup Project | ||
|
||
In order to run this project locally in your machine follow the following steps: | ||
``` | ||
git clone https://github.com/MahdiSohaily/JS-capstone.git | ||
cd Todo-app | ||
npm install | ||
npm run dev | ||
npm run start | ||
``` | ||
|
||
## My process | ||
## Built With | ||
- HTML5 | ||
- CSS3 | ||
- Purge CSS | ||
- Flexbox | ||
- CSS Grid | ||
- Mobile-first workflow | ||
- Webpack 5 | ||
- JavaScript | ||
- Axios | ||
- Jest for testing | ||
|
||
### Author | ||
|
||
👤 **Mahdi Rezaei** | ||
|
||
- Frontend Mentor - [@MahdiSohaily](https://www.frontendmentor.io/profile/MahdiSohaily) | ||
- Twitter - [@Mahdi_Rezaei_AF](https://twitter.com/Mahdi_Rezaei_AF) | ||
- linkedIn - [@Mahdi-rezaei](https://www.linkedin.com/in/mahdi-rezaei-74705713b) | ||
|
||
👤 **Alejandra Keber Maggi** | ||
|
||
- GitHub: [@AlejandraKeber](https://github.com/AlejandraKeber) | ||
- Twitter: @KeberAlejandra | ||
- LinkedIn: [alejandra-keber](www.linkedin.com/in/alejandra-keber) | ||
|
||
## 🤝 Contributing | ||
|
||
Contributions, issues, and feature requests are welcome! | ||
|
||
Feel free to check the [issues page](https://github.com/MahdiSohaily/JS-capstone/issues). | ||
|
||
## Show your support | ||
|
||
Give a ⭐️ if you like this project! |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.