Skip to content

Commit

Permalink
Add links
Browse files Browse the repository at this point in the history
  • Loading branch information
RetGal committed Aug 27, 2024
1 parent 882544c commit 7f88be4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions content/en/docs/02/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ The app is split in a frontend and an api part:
* The frontend is written in type script and uses a redis memcache.
* The backend is mostly written in python, uses a postgreSQL database and mailisearch.

Caddy is used as reverse proxy to keep the various parts together.
Caddy is used as reverse proxy to keep the parts together.


### The Journey
Expand Down Expand Up @@ -79,7 +79,7 @@ As a first step, we could implement a simple `build` function:
)
```

This allows us to build the frontend and bind it as a service to the localhost on port 3000:
This allows us to build the frontend and expose it as a [Service](https://docs.dagger.io/manuals/developer/services) to the [localhost](https://docs.dagger.io/manuals/developer/services#expose-services-returned-by-functions-to-the-host) on port 3000:

```bash
dagger -m Classquiz call build --context ./frontend/ with-exposed-port --port 3000 as-service
Expand All @@ -100,7 +100,7 @@ As we have seen before, the two parts of the app depend on several components:
* Meilisearch
* Caddy

We have to implement each component as a service, which then can be used app. For Redis this could look like this:
We have to implement each component as a [Service](https://docs.dagger.io/manuals/developer/services), which then can be used app. For Redis this could look like this:

```python
@function
Expand Down Expand Up @@ -232,7 +232,7 @@ After:
Now we can finally run ClassQuiz locally:

```bash
dagger call proxy --context-frontend=./frontend --context-backend=. --proxy-config=Caddyfile-docker up --ports=8000:8080
dagger -m Classquiz call proxy --context-frontend=./frontend --context-backend=. --proxy-config=Caddyfile-docker up --ports=8000:8080
```

And then visit [localhost:8000](http://localhost:8000/) - where, after registering ourselves, we can log in and create our survey!
Expand Down

0 comments on commit 7f88be4

Please sign in to comment.