taxonomy
taxonomy copied to clipboard
Correct setting .env?
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?
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.
I am also facing issue while setting .env file. @Sepera-okeq ere you able to set it everything properly?
@theDheerajjha
- Clone repo in local machine and join in folder repo.
- Run
pnpm i
-
.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=
- Run
npx prisma db push
(to recreate all the tables in this database) - Run
pnpm dev
(dev) orpnpm build
+pnpm start
(prod)
@shadcn @Sepera-okeq Why not put this in the README.md Get Started instructions?
It would be helpful if it was easier to see templates for postmark