An app to support the Udemy course Testing Next.js Apps
- Run
npm install
- Run
cp .env.development.local_template .env.development.local
- Run
cp .env.test.local_template .env.test.local
- Run
cp .env.local_template .env.local
- In .env.test.local, populate
CYPRESS_TEST_USER_EMAIL
ANDCYPRESS_TEST_PASSWORD
with data that matches test database data - In .env.local and .env.test.local:
-
add site base URL for
NEXTAUTH_URL
andNEXT_PUBLIC_BASE_URL
-
add long, hard-to-guess strings as the values for
NEXTAUTH_SECRET
andREVALIDATION_SECRET
- command to generate a random string:
openssl rand -base64 32
- command to generate a random string:
Run npm run dev
. The app will be found at [http://localhost:3000]