taxonomy icon indicating copy to clipboard operation
taxonomy copied to clipboard

Correct setting .env?

Open Sepera-okeq opened this issue 1 year ago • 3 comments

Hi! I really don't understand how to properly configure the .env file, can I ask you to describe in detail how to do everything correctly so that all the functionality works correctly for me?

Sepera-okeq avatar Mar 05 '23 22:03 Sepera-okeq

Env vars have a comment above, visit the respective platform to get required env variable

Example for Database

# -----------------------------------------------------------------------------
# Database (MySQL - PlanetScale)
# -----------------------------------------------------------------------------
DATABASE_URL="mysql://root:root@localhost:3306/taxonomy?schema=public"

Visit the https://planetscale.com/ and see their docs

For though for all the env vars.

alphaolomi avatar Mar 08 '23 13:03 alphaolomi

I am also facing issue while setting .env file. @Sepera-okeq ere you able to set it everything properly?

theDheerajjha avatar Apr 11 '23 22:04 theDheerajjha

@theDheerajjha

  1. Clone repo in local machine and join in folder repo.
  2. Run pnpm i
  3. .env file:
# Your domain, where the instance of Taxonomy will work
NEXT_PUBLIC_APP_URL=https://example.com
NEXTAUTH_URL=https://example.com
# Any line that goes as a secret is for production only. (Random string)
NEXTAUTH_SECRET="<random string>"

# in https://github.com/settings/developers (OAuth Apps)
GITHUB_CLIENT_ID=<client_id>
GITHUB_CLIENT_SECRET=<client_secret>

# in https://github.com/settings/developers (Personal access tokens (classic)
GITHUB_ACCESS_TOKEN=<access_token>

# local database MariaDB / MySQL 
DATABASE_URL="mysql://login:password@localhost:3306/database_name?schema=public"

# in https://postmarkapp.com/
SMTP_FROM=
POSTMARK_API_TOKEN="<token>"
POSTMARK_SIGN_IN_TEMPLATE=
POSTMARK_ACTIVATION_TEMPLATE=

STRIPE_API_KEY=
STRIPE_WEBHOOK_SECRET=
STRIPE_PRO_MONTHLY_PLAN_ID=
  1. Run npx prisma db push (to recreate all the tables in this database)
  2. Run pnpm dev (dev) or pnpm build + pnpm start (prod)

Sepera-okeq avatar Apr 12 '23 01:04 Sepera-okeq

@shadcn @Sepera-okeq Why not put this in the README.md Get Started instructions?

guylepage3 avatar Aug 10 '23 16:08 guylepage3

It would be helpful if it was easier to see templates for postmark

walter-grace avatar Aug 23 '23 20:08 walter-grace