Skip to content

Commit

Permalink
update .env.example files with new key value pairs
Browse files Browse the repository at this point in the history
  • Loading branch information
emredevsalot committed Aug 18, 2023
1 parent 912e4ee commit 882bc5c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 23 deletions.
17 changes: 0 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,23 +52,6 @@ npm install

- Duplicate `.env.example` files and rename them as `.env` in the following folders: `db/prisma`, `apps/gql`, `apps/kampus`, `apps/pasaport`.

- Make the following changes to the corresponding files.

```sh
# apps/gql, apps/kampus, apps/pasaport
NEXTAUTH_URL=http://pasaport.localhost.kamp.us:3001/auth
```

```sh
# apps/kampus
NEXT_PUBLIC_GQL_URL=http://gql.localhost.kamp.us:3002/graphql
```

```sh
# apps/kampus, apps/pasaport
AUTH_COOKIE_DOMAIN='.localhost.kamp.us'
```

### 4) Prisma Setup and Database Configuration

- Build required packages(`sozluk` and `prisma client`). (It may fail, but it's fine, continue with the next step.)
Expand Down
2 changes: 1 addition & 1 deletion apps/gql/.env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
NODE_ENV=development
DATABASE_URL=mysql://kampus:kampus@localhost:3306/kampus?schema=public
NEXTAUTH_URL=http://localhost:3001/auth
NEXTAUTH_URL=http://pasaport.localhost.kamp.us:3001/auth
6 changes: 3 additions & 3 deletions apps/kampus/.env.example
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# update with the url after running `npm run dev` under `apps/gql`
NEXT_PUBLIC_GQL_URL=http://localhost:4000/graphql
NEXTAUTH_URL=http://localhost:3001/auth
NEXT_PUBLIC_GQL_URL=http://gql.localhost.kamp.us:3002/graphql
NEXTAUTH_URL=http://pasaport.localhost.kamp.us:3001/auth
DATABASE_URL=mysql://root:kampus@localhost:3306/kampus
AUTH_COOKIE_DOMAIN=''
AUTH_COOKIE_DOMAIN='.localhost.kamp.us'
GITHUB_ID=''
GITHUB_SECRET=''
DISCORD_ID=''
Expand Down
4 changes: 2 additions & 2 deletions apps/pasaport/.env.example
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
NODE_ENV=development
NEXTAUTH_URL=http://localhost:3001/auth
NEXTAUTH_URL=http://pasaport.localhost.kamp.us:3001/auth
DATABASE_URL=mysql://root:kampus@localhost:3306/kampus
AUTH_COOKIE_DOMAIN=''
AUTH_COOKIE_DOMAIN='.localhost.kamp.us'
GITHUB_ID=''
GITHUB_SECRET=''
DISCORD_ID=''
Expand Down

0 comments on commit 882bc5c

Please sign in to comment.