Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ghoshnirmalya/testing-next.js-apps
End to End for Next.js apps
https://github.com/ghoshnirmalya/testing-next.js-apps
buttercms cypress nextjs react
Last synced: 2 days ago
JSON representation
End to End for Next.js apps
- Host: GitHub
- URL: https://github.com/ghoshnirmalya/testing-next.js-apps
- Owner: ghoshnirmalya
- License: mit
- Created: 2019-05-01T09:06:36.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-12-15T05:47:08.000Z (23 days ago)
- Last Synced: 2024-12-27T02:03:41.705Z (11 days ago)
- Topics: buttercms, cypress, nextjs, react
- Language: JavaScript
- Homepage: https://buttercms.com/blog/how-to-test-nextjs-apps
- Size: 806 KB
- Stars: 13
- Watchers: 3
- Forks: 5
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Testing Next.js apps
This app demonstrates how you can test a Next.js app using Cypress.
## Demo
Please check out the ZEIT demo at https://testing-nextjs-apps.ghoshnirmalya.now.sh/.
## Development
```sh
$ git clone https://github.com/ghoshnirmalya/testing-next.js-apps
$ cd testing-next.js-apps
$ yarn install
```If you prefer `npm`, you can do `npm install` instead of `yarn install`.
#### Running the app
```sh
$ yarn dev
```If you prefer `npm`, you can do `npm run dev` instead of `yarn dev`.
#### Building the app
```sh
$ yarn build
```If you prefer `npm`, you can do `npm run build` instead of `yarn build`.
#### Exporting the app
```sh
$ yarn export
```If you prefer `npm`, you can do `npm run export` instead of `yarn export`.
#### Running Cypress
```sh
$ yarn run cypress open
```If you prefer `npm`, you can do `npm run cypress open` instead of `yarn run cypress open`.
## Built With
- [Blue](https://cruip.com/blue/) - Landing page template from [Cruip](https://cruip.com/).
- [Next.js](https://nextjs.org/) - The React.js framework for building SSR web apps.
- [React](https://facebook.github.io/react/) - A JavaScript library for building user interfaces
- [Screely](https://www.screely.com/) - Instantly turn your screenshot into a beautiful design mockup
- [Cypress](https://www.cypress.io/) - Fast, easy and reliable testing for anything that runs in a browser.## Deploying
1. Create a ZEIT account at https://zeit.co/signup and download [the CLI](https://zeit.co/download)
2. Add the API key as a secret `now secrets add butter-cms-api-key "YOUR_API_KEY"`
3. Run `now` at the project root## License
MIT Licensed. Copyright (c) ButterCMS 2019.