/ricettine-next13

NextJS 13 app, user login, create and share recipes, database in the repo

Primary LanguageTypeScriptGNU General Public License v3.0GPL-3.0

Popular Concert Venue

An app to support the Udemy course Testing Next.js Apps

Installation

  1. Run npm install
  2. Run cp .env.development.local_template .env.development.local
  3. Run cp .env.test.local_template .env.test.local
  4. Run cp .env.local_template .env.local
  5. In .env.test.local, populate CYPRESS_TEST_USER_EMAIL AND CYPRESS_TEST_PASSWORD with data that matches test database data
  6. In .env.local and .env.test.local:
  • add site base URL for NEXTAUTH_URL and NEXT_PUBLIC_BASE_URL

  • add long, hard-to-guess strings as the values for NEXTAUTH_SECRET and REVALIDATION_SECRET

    • command to generate a random string: openssl rand -base64 32

Running the App

Run npm run dev. The app will be found at [http://localhost:3000]