Skip to content
Snippets Groups Projects

(1st MR) Refactorings to prepare to add a Logger

Merged Omar Qunsul requested to merge extract-rules-matching-into-router-engine into main
All threads resolved!
Files
12
+ 45
0
# Development
## Setting up your development environment
1. Install `npm`.
1. Install `Node.js`.
You can skip this step, if you have already installed Node.js for GDK.
1. Clone this repository:
```sh
git clone https://gitlab.com/gitlab-org/cells/http-router.git
```
1. If you are using GDK, set up
[local interface](https://gitlab.com/gitlab-org/gitlab-development-kit/-/blob/main/doc/howto/local_network.md#local-interface).
## Running your development environment
1. (optional) The router's configuration defaults to routing to `gdk.test:3000`.
If you have a different GDK address, create a file named `.dev.vars` with the following:
```
GITLAB_PROXY_HOST = "gdk.test:8080"
```
1. Start the router with:
```sh
npx wrangler dev --env dev
```
1. To run tests:
```sh
npx vitest
```
## Updating your development environment
1. To update, `git pull` on the `main` branch:
```sh
git checkout main
git pull
```
Loading