v1.0.0
This project is used as a NextJS Example
to setup next projects and not as its own app to be built on.
This template uses the following technology:
@material-ui
as components libraryaxios
as the http request library.@testing-library
andjest
for testing framework.cypress
andcypress-cucumber-prepropcessor
for BDD style testing.
Setup next project like this:
npx create-next-app {PROJECT NAME} --example https://github.com/DataEstate/next-js-template
Configuration is mostly based on NextJS's configuration. Please see next.config.js or Environment variables
One thing to be aware of is the port
for Cypress tests. NextJS runs the app in :3000
by default. This is what's used for the baseUrl
in cypress.json
. If you run your Next app in another port, make sure you update it in the .json
file.