Skip to content

Commit

Permalink
migrating to new webapp version
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan-Roberts123 committed May 3, 2024
1 parent 4b632cd commit 02f9867
Show file tree
Hide file tree
Showing 87 changed files with 10,319 additions and 8,881 deletions.
24 changes: 1 addition & 23 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,3 @@
{
"env": {
"browser": true,
"es6": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"eslint-plugin-cypress"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": ["react"],
"rules": { "react/react-in-jsx-scope": "off" }
"extends": "next/core-web-vitals"
}
14 changes: 10 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
/node_modules
/.pnp
.pnp.js
.yarn/install-state.gz

# testing
/coverage
Expand All @@ -17,19 +18,24 @@

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env.local
.env.development.local
.env.test.local
.env.production.local
.env*.local
.env

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts

# sst
.sst

Expand Down
2 changes: 0 additions & 2 deletions .prettierignore

This file was deleted.

18 changes: 0 additions & 18 deletions .prettierrc

This file was deleted.

65 changes: 20 additions & 45 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,61 +1,36 @@
# Test a Next.js App with Cypress
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).

## Video Lesson Outline:
## Getting Started

[# 1 - Application Overview](https://youtu.be/xIl-0ZTtOHY)

[# 2 - Install Cypress and eslint-plugin-cypress](https://youtu.be/dkekN7rKF1Y)

[# 3 - Configure Cypress.json File](https://youtu.be/smd5UQUq5Uc)

[# 4 - Write Our First Test](https://youtu.be/TLjFmOpGjUU)

[# 5 - Write Better Tests with Cypress Testing Library](https://youtu.be/a1SvfURYxTQ)

[# 6 - Run Cypress in Multiple Browsers](https://youtu.be/z7s-acDceCs)

[# 7 - Test The Client Flow ](https://youtu.be/RupBr0w-bAk)

## Installing/Running the app

### Create a .env file

```
USERNAME="name you want displayed in project here"
MONGODB_URI="database creds here"
```
First, run the development server:

```bash
yarn
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
```

## Running Tests

```bash
yarn cy:open
```

### Formatting with Prettier

```bash
yarn format
```
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

## Technologies Used
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.

[NextJS](https://nextjs.org/)
This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.

[Cypress-testing-library](https://testing-library.com/docs/cypress-testing-library/intro)
## Learn More

[Tailwindcss](https://tailwindcss.com/)
To learn more about Next.js, take a look at the following resources:

[React-notifications-component](https://teodosii.github.io/react-notifications-component/)
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.

[React-icons](https://github.com/react-icons/react-icons#readme)
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!

[Mongoose](https://mongoosejs.com/)
## Deploy on Vercel

[MongoDB Atlas](https://www.mongodb.com/cloud/atlas/)
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.

[Prettier](https://prettier.io/docs/en/install.html)
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
17 changes: 17 additions & 0 deletions components.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "default",
"rsc": true,
"tsx": true,
"tailwind": {
"config": "tailwind.config.ts",
"css": "src/app/globals.css",
"baseColor": "slate",
"cssVariables": true,
"prefix": ""
},
"aliases": {
"components": "@/components",
"utils": "@/lib/utils"
}
}
20 changes: 0 additions & 20 deletions components/CancelBtn.jsx

This file was deleted.

45 changes: 0 additions & 45 deletions components/Client.jsx

This file was deleted.

25 changes: 0 additions & 25 deletions components/ClientList.jsx

This file was deleted.

7 changes: 0 additions & 7 deletions components/Footer.jsx

This file was deleted.

35 changes: 0 additions & 35 deletions components/Header.jsx

This file was deleted.

17 changes: 0 additions & 17 deletions components/Layout.jsx

This file was deleted.

3 changes: 0 additions & 3 deletions css/tailwind.css

This file was deleted.

9 changes: 0 additions & 9 deletions cypress.config.js

This file was deleted.

Loading

0 comments on commit 02f9867

Please sign in to comment.