-
Notifications
You must be signed in to change notification settings - Fork 0
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
JavaScript capstone project - Your API-based webapp #40
Merged
Changes from all commits
Commits
Show all changes
65 commits
Select commit
Hold shift + click to select a range
731d783
Added project assets
d3f10c6
fixed error
01bc41b
Added project assets
da73475
Add txt file that describes the API tha we will use
danifromecuador b6d0d04
Merge pull request #23 from danifromecuador/assets-feature
Mylo16 0758326
Add webpack files
danifromecuador c76ee0b
Merge pull request #24 from danifromecuador/find-API
danifromecuador afa19bf
Add linters files
danifromecuador 72cb4e4
Add jest files for testing
danifromecuador 3b70e80
Add babel files to manage ES6 syntax
danifromecuador 4448a8f
Create dist folder by running this command: npm run build
danifromecuador be8a842
Merge pull request #25 from danifromecuador/setup-project
danifromecuador f8d04b1
Create footer in HTML
danifromecuador 06b7320
Added homepage header
3b28b66
Merge pull request #26 from danifromecuador/footer
danifromecuador 7b36eaa
Fix conflict
6c39f94
Create generateMovies function
danifromecuador eedf80f
Merge pull request #28 from danifromecuador/display-list-of-items
danifromecuador 4f0415e
Create likes counter with involvment API
danifromecuador 9c44836
Fix linter errors
danifromecuador 83cc617
Run npm run build command to create the dist files
danifromecuador 109a6cc
Added comment popup first section
9d97fdb
fix linter errors
bdf21be
Merge pull request #29 from danifromecuador/likes-counter-api
danifromecuador 7c0a984
Update screen when the user clicks on the like button
danifromecuador 49fe1a8
fixed conflict
d7160c3
fixed conflict
a538852
solved git conflict
3cd8688
fixed conflict
c2677bd
Merge branch 'dev' into add-new-like
danifromecuador f7e666c
Merge pull request #31 from danifromecuador/add-new-like
danifromecuador e8adb01
fixed conflict
f413b3c
fixed conflict
04a3a23
fixed conflict
143703d
finish showing comments
6410593
Merge pull request #32 from danifromecuador/show-comments
Mylo16 94250ef
Add episodes counter function
danifromecuador ec76670
Fix linter errors and run npm run build to create dist files
danifromecuador af50302
Fix stylelint error
danifromecuador 7b73d28
Finished implementing add comment
9e2210e
Merge pull request #33 from danifromecuador/all-items-counter-2
danifromecuador 5ab5096
fixed conflict
bf4bcda
Finished comments counter and its testing
9ac0c76
Fixed linter errors
f686b9e
Fixed linter errors
c01e4e2
Fixed linter errors
e763ba1
Updated READMe.md file
7b2b394
Merge pull request #35 from danifromecuador/comments-counter
danifromecuador b2541aa
Create episodesCounter test
danifromecuador f05666e
Fix linter errors and Run npm run build to create dist files
danifromecuador 3fc4d39
Merge pull request #36 from danifromecuador/test-items-counter
Mylo16 832feef
styled homepage
0f1b54a
Merge branch 'test-items-counter' into dev
3a8f4bf
Add second author and live demo link
danifromecuador e953fd2
Fix stylelint error
danifromecuador 8b60f02
Merge pull request #37 from danifromecuador/update-readme
Mylo16 fa3b544
Change source of heart button link
danifromecuador 94c075d
Merge branch 'dev' into fix-heart-button
danifromecuador cc10ebe
Merge pull request #38 from danifromecuador/fix-heart-button
danifromecuador 07c479a
Rename LICENSE to MIT.md
Mylo16 76cdbf4
Fix review errors
f9b1cb9
Fix review errors
4d40b08
Fix review errors
e004902
Change icon images for icon unicode
danifromecuador 6471dda
Install webpack again and Fix linter errors
danifromecuador File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,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: "18.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: "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/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: "18.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 @@ | ||
node_modules |
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,18 @@ | ||
{ | ||
"connector": { | ||
"name": "local", | ||
"options": { | ||
"pattern": ["**", "!.git/**", "!node_modules/**"] | ||
} | ||
}, | ||
"extends": ["development"], | ||
"formatters": ["stylish"], | ||
"hints": [ | ||
"button-type", | ||
"disown-opener", | ||
"html-checker", | ||
"meta-charset-utf-8", | ||
"meta-viewport", | ||
"no-inline-styles:error" | ||
] | ||
} |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"liveServer.settings.port": 5501 | ||
} |
File renamed without changes.
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,2 +1,93 @@ | ||
# api-webapp | ||
This project will consume a real API | ||
# 📗 Table of Contents | ||
|
||
- [📖 About the Project](#about-project) | ||
- [🛠 Built With](#built-with) | ||
- [Tech Stack](#tech-stack) | ||
- [Key Features](#key-features) | ||
- [🚀 Live Demo](#live-demo) | ||
- [💻 Getting Started](#getting-started) | ||
- [Prerequisites](#prerequisites) | ||
- [Setup](#setup) | ||
- [Deployment](#triangular_flag_on_post-deployment) | ||
- [👥 Authors](#authors) | ||
- [🔭 Future Features](#future-features) | ||
- [🤝 Contributing](#contributing) | ||
- [⭐️ Show your support](#support) | ||
- [🙏 Acknowledgements](#acknowledgements) | ||
- [📝 License](#license) | ||
|
||
# 📖 [API WebApp] <a name="about-project"></a> | ||
|
||
**[Api WebApp]** A movie website built with tvmaze API which shows episodes of a seasonal movie. Users get to share their comments through the comment section in the popup menu. | ||
|
||
## 🛠 Built With <a name="built-with"></a> | ||
|
||
### Tech Stack <a name="tech-stack"></a> | ||
|
||
HTML, CSS, JavaScript with webpack and linter files | ||
|
||
### Key Features <a name="key-features"></a> | ||
|
||
- **[linter files(debugging tools)]** | ||
- **[ html, JavaScript and css template]** | ||
|
||
## 🚀 Live Demo <a name="live-demo"></a> | ||
|
||
- [Movies API](https://danifromecuador.github.io/api-webapp/dist/) | ||
|
||
## 💻 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: | ||
|
||
-Install git on your computer | ||
|
||
-code editor | ||
|
||
|
||
### Setup | ||
|
||
Clone this repository to your desired folder: | ||
|
||
-git@github.com:Danifromecuador/api-webapp.git | ||
|
||
### Deployment | ||
|
||
N/A | ||
|
||
|
||
## 👥 Authors <a name="authors"></a> | ||
|
||
### Autor 1 | ||
- GitHub: [@Mylo16](https://github.com/Mylo16) | ||
- Twitter: @EricAnt33872607 | ||
- LinkedIn: linkedin.com/in/eric-antwi-580650251 | ||
|
||
### Author 2 | ||
- GitHub: [@danifromecuador](https://github.com/danifromecuador) | ||
- Twitter: [@danifromecuador](https://twitter.com/danifromecuador) | ||
- LinkedIn: [danifromecuador](https://www.linkedin.com/in/danifromecuador/) | ||
|
||
## 🔭 Future Features <a name="future-features"></a> | ||
|
||
- In the near future We will be adding the other sections like watching the movies online, downloading, etc | ||
|
||
## 🤝 Contributing <a name="contributing"></a> | ||
|
||
Contributions, issues, and feature requests are welcome! | ||
-https://github.com/Danifromecuador/api-webapp/issues | ||
|
||
## ⭐️ Show your support <a name="support"></a> | ||
|
||
If you like this project show your support by giving a ⭐️ | ||
|
||
## 🙏 Acknowledgments <a name="acknowledgements"></a> | ||
|
||
We would like to thank the entire microverse staff and students for such a wonderful coding camp | ||
|
||
## 📝 License <a name="license"></a> | ||
|
||
This project is [MIT](./MIT.md) licensed. | ||
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,3 @@ | ||
module.exports = { | ||
presets: [['@babel/preset-env', { targets: { node: 'current' } }]], | ||
}; |
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,42 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<link rel="preconnect" href="https://fonts.googleapis.com"> | ||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> | ||
<link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,200;0,400;0,600;0,800;1,700&display=swap" | ||
rel="stylesheet"> | ||
<title>Dani-Mylo Movies</title> | ||
<script defer src="main.js"></script></head> | ||
|
||
<body> | ||
<header> | ||
<nav class="flex-display nav"> | ||
<div class="logo-container"><img class="logo" src="../assets/logo.png" alt="application logo"></div> | ||
<ul class="flex-display nav-lists"> | ||
<li class="nav-list"><a href="#arrow">Arrow(1)</a></li> | ||
<li class="nav-list"><a href="#blacklist">BlackList(1)</a></li> | ||
<li class="nav-list"><a href="#blacklist">The Last of Us(1)</a></li> | ||
</ul> | ||
</nav> | ||
</header> | ||
<section class="episodesCounter"> | ||
<!-- here the total number of episodes will be shown dinamically --> | ||
</section> | ||
<main id="main" class="flex-display main-section"> | ||
|
||
</main> | ||
<section id="popup-window" class="popup-section"> | ||
|
||
</section> | ||
<footer> | ||
<p>Created by Eric and Dani under CC license</p> | ||
</footer> | ||
</body> | ||
|
||
</html> | ||
|
||
|
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
404
error page not found