Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed .DS_Store
Binary file not shown.
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,37 @@ Open Prisma studio:
npx prisma studio
```

## Ngrok
### Setup
1. Create an [ngrok](https://dashboard.ngrok.com/signup) account

2. Store your personal ngrok authentication token as an environment variable in the .env file of the root directory:
```
NGROK_AUTHTOKEN=<your_ngrok_auth_token>
```

3. Run the application:
```bash
docker compose up --build
```

### Troubleshooting

If another service is occupying port 5001, identify the PID of the service (macOS):
```bash
sudo lsof -i :5001
```

Kill the occupying service:
```bash
sudo kill <PID>
```

Run the application again:
```bash
docker compose up --build
```

## The Team
### Term 1 (W24):
**Project Lead:** N/A<br>
Expand Down
12 changes: 9 additions & 3 deletions backend/typescript/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,20 @@ COPY package.json yarn.lock tsconfig.json ./

RUN echo "deb http://archive.debian.org/debian stretch main" > /etc/apt/sources.list

# libcurl3 is required for mongodb-memory-server, which is used for testing
RUN apt-get update && apt-get install -y libcurl3
# Install dependencies
RUN apt-get update && apt-get install -y libcurl4 curl unzip

# Install ngrok using curl
RUN curl -o ngrok-stable-linux-amd64.zip https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip && \
unzip ngrok-stable-linux-amd64.zip && \
mv ngrok /usr/local/bin/ && \
rm ngrok-stable-linux-amd64.zip

RUN yarn install

COPY . ./

RUN npx prisma generate

EXPOSE 5000
EXPOSE 5001
ENTRYPOINT ["yarn", "dev"]
Loading