Skip to content

Commit

Permalink
extracting "Modifying hosts file" as a step
Browse files Browse the repository at this point in the history
  • Loading branch information
emredevsalot committed Aug 18, 2023
1 parent 91b82c5 commit 912e4ee
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,19 @@ cd monorepo
npm install
```

### 2) Setting up `.env` files and modifying `hosts` file
### 2) Modifying `hosts` file

- Add the following text block to [your `/etc/hosts` file](https://www.howtogeek.com/27350/beginner-geek-how-to-edit-your-hosts-file/).

```text
127.0.0.1 localhost.kamp.us
127.0.0.1 pasaport.localhost.kamp.us
127.0.0.1 pano.localhost.kamp.us
127.0.0.1 sozluk.localhost.kamp.us
127.0.0.1 gql.localhost.kamp.us
```

### 3) Setting up `.env` files

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

Expand All @@ -57,17 +69,7 @@ NEXT_PUBLIC_GQL_URL=http://gql.localhost.kamp.us:3002/graphql
AUTH_COOKIE_DOMAIN='.localhost.kamp.us'
```

- Add the following text block to your `/etc/hosts` file.

```text
127.0.0.1 localhost.kamp.us
127.0.0.1 pasaport.localhost.kamp.us
127.0.0.1 pano.localhost.kamp.us
127.0.0.1 sozluk.localhost.kamp.us
127.0.0.1 gql.localhost.kamp.us
```

### 3) Prisma Setup and Database Configuration
### 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 Expand Up @@ -105,7 +107,7 @@ npm run prisma:generate
npm run prisma:push
```

### 4) Running dev servers
### 5) Running dev servers

- Open up 3 terminals, and run the commands below on each.

Expand All @@ -123,7 +125,7 @@ npm run dev -w @kampus-apps/pasaport

- Now you can go to [localhost.kamp.us:3000](localhost.kamp.us:3000) to see it live. 🚀

### 5) Logging in with GitHub on development server(optional)
### 6) Logging in with GitHub on development server(optional)

- Go to [OAuth Apps page](https://github.com/settings/developers) on GitHub.
- Click on `New OAuth App`.
Expand Down

0 comments on commit 912e4ee

Please sign in to comment.