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

JavaScript capstone project - Your API-based webapp #40

Merged
merged 65 commits into from
Apr 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
731d783
Added project assets
Apr 18, 2023
d3f10c6
fixed error
Apr 18, 2023
01bc41b
Added project assets
Apr 18, 2023
da73475
Add txt file that describes the API tha we will use
danifromecuador Apr 18, 2023
b6d0d04
Merge pull request #23 from danifromecuador/assets-feature
Mylo16 Apr 18, 2023
0758326
Add webpack files
danifromecuador Apr 18, 2023
c76ee0b
Merge pull request #24 from danifromecuador/find-API
danifromecuador Apr 18, 2023
afa19bf
Add linters files
danifromecuador Apr 18, 2023
72cb4e4
Add jest files for testing
danifromecuador Apr 18, 2023
3b70e80
Add babel files to manage ES6 syntax
danifromecuador Apr 18, 2023
4448a8f
Create dist folder by running this command: npm run build
danifromecuador Apr 19, 2023
be8a842
Merge pull request #25 from danifromecuador/setup-project
danifromecuador Apr 19, 2023
f8d04b1
Create footer in HTML
danifromecuador Apr 19, 2023
06b7320
Added homepage header
Apr 19, 2023
3b28b66
Merge pull request #26 from danifromecuador/footer
danifromecuador Apr 19, 2023
7b36eaa
Fix conflict
Apr 20, 2023
6c39f94
Create generateMovies function
danifromecuador Apr 20, 2023
eedf80f
Merge pull request #28 from danifromecuador/display-list-of-items
danifromecuador Apr 20, 2023
4f0415e
Create likes counter with involvment API
danifromecuador Apr 20, 2023
9c44836
Fix linter errors
danifromecuador Apr 20, 2023
83cc617
Run npm run build command to create the dist files
danifromecuador Apr 20, 2023
109a6cc
Added comment popup first section
Apr 21, 2023
9d97fdb
fix linter errors
Apr 21, 2023
bdf21be
Merge pull request #29 from danifromecuador/likes-counter-api
danifromecuador Apr 21, 2023
7c0a984
Update screen when the user clicks on the like button
danifromecuador Apr 21, 2023
49fe1a8
fixed conflict
Apr 21, 2023
d7160c3
fixed conflict
Apr 21, 2023
a538852
solved git conflict
Apr 21, 2023
3cd8688
fixed conflict
Apr 21, 2023
c2677bd
Merge branch 'dev' into add-new-like
danifromecuador Apr 21, 2023
f7e666c
Merge pull request #31 from danifromecuador/add-new-like
danifromecuador Apr 21, 2023
e8adb01
fixed conflict
Apr 21, 2023
f413b3c
fixed conflict
Apr 21, 2023
04a3a23
fixed conflict
Apr 21, 2023
143703d
finish showing comments
Apr 21, 2023
6410593
Merge pull request #32 from danifromecuador/show-comments
Mylo16 Apr 21, 2023
94250ef
Add episodes counter function
danifromecuador Apr 21, 2023
ec76670
Fix linter errors and run npm run build to create dist files
danifromecuador Apr 21, 2023
af50302
Fix stylelint error
danifromecuador Apr 21, 2023
7b73d28
Finished implementing add comment
Apr 21, 2023
9e2210e
Merge pull request #33 from danifromecuador/all-items-counter-2
danifromecuador Apr 21, 2023
5ab5096
fixed conflict
Apr 21, 2023
bf4bcda
Finished comments counter and its testing
Apr 21, 2023
9ac0c76
Fixed linter errors
Apr 21, 2023
f686b9e
Fixed linter errors
Apr 21, 2023
c01e4e2
Fixed linter errors
Apr 21, 2023
e763ba1
Updated READMe.md file
Apr 21, 2023
7b2b394
Merge pull request #35 from danifromecuador/comments-counter
danifromecuador Apr 22, 2023
b2541aa
Create episodesCounter test
danifromecuador Apr 22, 2023
f05666e
Fix linter errors and Run npm run build to create dist files
danifromecuador Apr 22, 2023
3fc4d39
Merge pull request #36 from danifromecuador/test-items-counter
Mylo16 Apr 22, 2023
832feef
styled homepage
Apr 22, 2023
0f1b54a
Merge branch 'test-items-counter' into dev
Apr 22, 2023
3a8f4bf
Add second author and live demo link
danifromecuador Apr 22, 2023
e953fd2
Fix stylelint error
danifromecuador Apr 22, 2023
8b60f02
Merge pull request #37 from danifromecuador/update-readme
Mylo16 Apr 22, 2023
fa3b544
Change source of heart button link
danifromecuador Apr 22, 2023
94c075d
Merge branch 'dev' into fix-heart-button
danifromecuador Apr 22, 2023
cc10ebe
Merge pull request #38 from danifromecuador/fix-heart-button
danifromecuador Apr 22, 2023
07c479a
Rename LICENSE to MIT.md
Mylo16 Apr 23, 2023
76cdbf4
Fix review errors
Apr 23, 2023
f9b1cb9
Fix review errors
Apr 23, 2023
4d40b08
Fix review errors
Apr 23, 2023
e004902
Change icon images for icon unicode
danifromecuador Apr 23, 2023
6471dda
Install webpack again and Fix linter errors
danifromecuador Apr 23, 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
25 changes: 25 additions & 0 deletions .eslintrc.json
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/"
]
}
70 changes: 70 additions & 0 deletions .github/workflows/linters.yml
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
18 changes: 18 additions & 0 deletions .hintrc
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"
]
}
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"]
}
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"liveServer.settings.port": 5501
}
File renamed without changes.
95 changes: 93 additions & 2 deletions README.md
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.
Copy link

@addod19 addod19 Apr 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • It would be better if we create the MIT license file in our root directory so that we can fix the 404 error page not found

Binary file added assets/closebtn.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/liked.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/unliked.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
presets: [['@babel/preset-env', { targets: { node: 'current' } }]],
};
42 changes: 42 additions & 0 deletions dist/index.html
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>


243 changes: 243 additions & 0 deletions dist/main.js

Large diffs are not rendered by default.

Loading