Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
plang-psm committed Jun 11, 2024
1 parent 8490717 commit 64086f5
Show file tree
Hide file tree
Showing 101 changed files with 2,477 additions and 156 deletions.
29 changes: 16 additions & 13 deletions frontend/.github/workflows/eslint-prettier.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
name: Check the source code
on:
pull_request:
branches:
- main
on: [push]
jobs:
test:
name: Check the source code
prettier-frontend:
runs-on: ubuntu-latest
name: Format Prettier on Frontend
steps:
- uses: actions/checkout@v2
- name: Install packages
run: npm ci
- name: Prettier
run: npm run format
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
working-directory: frontend
config-file: .prettierrc.js
node-version: '18'
- name: Install dependencies
run: |
cd "frontend"
npm install
- name: Run Prettier
run: |
cd "frontend"
npm run format
23 changes: 0 additions & 23 deletions frontend/cypress/e2e/forms/login-form.cy.js

This file was deleted.

24 changes: 0 additions & 24 deletions frontend/cypress/e2e/forms/signup-form.cy.js

This file was deleted.

Binary file added frontend/frontend/.DS_Store
Binary file not shown.
25 changes: 25 additions & 0 deletions frontend/frontend/.github/ISSUE_TEMPLATE/blank-issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: 'Blank Issue'
description: 'Blank issue template for quicker issue creation.'

body:
- type: input
id: overview
attributes:
label: Overview
description: 'Describe an overview of the issue.'
validations:
required: true
- type: textarea
id: action-items
attributes:
label: Action Items
description: 'List steps to take.'
validations:
required: true
- type: textarea
id: resources-instructions
attributes:
label: "Resources/Instructions"
description: 'Provide any resources that may assist.'
validations:
required: true
1 change: 1 addition & 0 deletions frontend/frontend/.github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blank_issues_enabled: false
15 changes: 15 additions & 0 deletions frontend/frontend/.github/workflows/cypress-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Cypress Tests

on: [push]

jobs:
Cypress-Test:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Run cypress test
uses: cypress-io/github-action@v6
with:
working-directory: frontend
config-file: prod.config.js
18 changes: 18 additions & 0 deletions frontend/frontend/.github/workflows/eslint-prettier.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Check the source code
on:
pull_request:
branches:
- main
jobs:
test:
name: Check the source code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install packages
run: npm ci
- name: Prettier
run: npm run format
with:
working-directory: frontend
config-file: .prettierrc.js
28 changes: 3 additions & 25 deletions frontend/frontend/.gitignore
Original file line number Diff line number Diff line change
@@ -1,25 +1,3 @@
# 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*

.env
.env
config.env
node_modules
12 changes: 8 additions & 4 deletions frontend/frontend/.prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
module.exports = {
singleQuote: true,
trailingComma: 'all',
printWidth: 100,
};
singleQuote: true,
trailingComma: 'all',
printWidth: 100,
tabWidth: 2,
useTabs: false,
bracketSpacing: true,

};
85 changes: 83 additions & 2 deletions frontend/frontend/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,67 @@
# Getting Started with Create React App

[![Contributors][contributors-shield]][contributors-url]
[![Forks][forks-shield]][forks-url]
[![Stargazers][stars-shield]][stars-url]
[![Issues][issues-shield]][issues-url]


<div align='center'>
<h1>Popfliix</h1>
<p>M.E.R.N. w/ Redux Toolkit - Full stack movie watchlist application that allows users to track their favorite movies and tvshows.</p>
<a href='https://www.linkedin.com/in/plang-psm/' target='_blank'><img src="https://img.shields.io/badge/linkedin-%230077B5.svg?style=for-the-badge&logo=linkedin&logoColor=white" alt="LinkedIn tag" /></a>
</div>

See [v1 Here](https://plang-psm.github.io/popflix/) to see how the project has progressed.


## Table of Contents
* [Description](#description)
* [Technologies](#technologies)
* [Images](#images)
* [Launch](#launch)
* [Contact](#contact)
* [Resources](#resources)

<img width="1328" alt="popfliix" src="https://github.com/plang-psm/popflix-v2/assets/101952500/725e96ca-f191-4994-8e95-c4c0fd0809c7">


## Description
Popflix is a fully responsive web application that allows users to browse through movies and shows provided by The Movie Database API. The user can also customize their own personal watchlist by storing or removiing movies from their watchlist.

## Technologies
* <img src="https://img.shields.io/badge/react-%2320232a.svg?style=for-the-badge&logo=react&logoColor=%2361DAFB" alt="React tag" />
* ![Redux](https://img.shields.io/badge/redux-%23593d88.svg?style=for-the-badge&logo=redux&logoColor=white)
* ![NodeJS](https://img.shields.io/badge/node.js-6DA55F?style=for-the-badge&logo=node.js&logoColor=white)
* ![Express.js](https://img.shields.io/badge/express.js-%23404d59.svg?style=for-the-badge&logo=express&logoColor=%2361DAFB)
* ![TailwindCSS](https://img.shields.io/badge/tailwindcss-%2338B2AC.svg?style=for-the-badge&logo=tailwind-css&logoColor=white)
* ![MongoDB](https://img.shields.io/badge/MongoDB-%234ea94b.svg?style=for-the-badge&logo=mongodb&logoColor=white)
* ![Vercel](https://img.shields.io/badge/vercel-%23000000.svg?style=for-the-badge&logo=vercel&logoColor=white)

## Images
<details>
<summary>Images</summary>
<br>

![Home](https://github.com/plang-psm/popflix-v2/assets/101952500/eb81886e-c095-44c9-8dc2-7fe8797f63b9)
<img width="1328" alt="image" src="https://github.com/plang-psm/popflix-v2/assets/101952500/282e9d48-f0bd-44e1-a414-af9e42a48645">
<img width="1328" alt="image" src="https://github.com/plang-psm/popflix-v2/assets/101952500/6163a55f-1b18-4b30-94ea-99707c9659a5">
<img width="1328" alt="image" src="https://github.com/plang-psm/popflix-v2/assets/101952500/fa6cd304-aadc-40b7-bbeb-152cd7bfcce3">
<img width="1328" alt="image" src="https://github.com/plang-psm/popflix-v2/assets/101952500/0bee5b47-e4b9-4074-a8cd-252107ea4e8e">
<img width="1328" alt="image" src="https://github.com/plang-psm/popflix-v2/assets/101952500/308ea56b-f823-4679-a4be-e21f9fe0ba72">
<img width="1328" alt="image" src="https://github.com/plang-psm/popflix-v2/assets/101952500/7143b5ab-f040-4317-8d69-6f8273fc7360">


</details>



## Launch
You can open the project here:
[Popflix](https://popfliix.vercel.app/)
or

<details>
<summary>Launch</summary>
<br>
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

## Available Scripts
Expand Down Expand Up @@ -68,3 +130,22 @@ This section has moved here: [https://facebook.github.io/create-react-app/docs/d
### `npm run build` fails to minify

This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
# popfliix
</details>

## Contact
<a href='https://www.linkedin.com/in/plang-psm/' target='_blank'><img src="https://img.shields.io/badge/linkedin-%230077B5.svg?style=for-the-badge&logo=linkedin&logoColor=white" alt="LinkedIn tag" /></a>

## Resources
Badges: <a href='https://github.com/Ileriayo/markdown-badges' target='_blank'>Copyright (c) 2020 Ileriayo Adebiyi</a>

Header and Layout: <a href='https://github.com/othneildrew/Best-README-Template' target='_blank'>Copyright (c) 2021 Othneil Drew</a>

[contributors-shield]: https://img.shields.io/github/contributors/plang-psm/dice-game.svg?style=for-the-badge
[contributors-url]: https://github.com/plang-psm/dice-game/graphs/contributors
[forks-shield]: https://img.shields.io/github/forks/plang-psm/dice-game.svg?style=for-the-badge
[forks-url]: https://github.com/plang-psm/dice-game/network/members
[stars-shield]: https://img.shields.io/github/stars/plang-psm/dice-game.svg?style=for-the-badge
[stars-url]: https://github.com/plang-psm/dice-game/stargazers
[issues-shield]: https://img.shields.io/github/issues/plang-psm/dice-game.svg?style=for-the-badge
[issues-url]: https://github.com/plang-psm/dice-game/issues
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,4 @@ module.exports = {
singleQuote: true,
trailingComma: 'all',
printWidth: 100,
tabWidth: 2,
useTabs: false,
bracketSpacing: true,

};
13 changes: 13 additions & 0 deletions frontend/frontend/backend/config/db.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
const mongoose = require('mongoose');

const connectDB = async () => {
try {
const conn = await mongoose.connect(process.env.MONGO_URI);
console.log(`MongoDB connected: ${conn.connection.host}`);
} catch (err) {
console.error(err);
process.exit(1);
}
};

module.exports = connectDB;
5 changes: 5 additions & 0 deletions frontend/frontend/backend/controllers/home.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
getIndex: (req, res) => {
res.render('index.js');
},
};
Loading

0 comments on commit 64086f5

Please sign in to comment.