Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

README

        

# Testing Next.js apps

This app demonstrates how you can test a Next.js app using Cypress.

Preview

## 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.