2024-02-15 07:15:55 +01:00
# Firefish Developer Docs
2023-05-11 15:11:28 +02:00
2024-03-03 17:35:31 +01:00
## Containerized Environment
2023-05-11 15:11:28 +02:00
2024-03-03 17:35:31 +01:00
The Firefish repo comes with a new containerized environment to help make development!
2023-05-11 15:11:28 +02:00
### Prerequisites
2024-03-03 17:35:31 +01:00
- Latest [Docker ](https://docs.docker.com/get-docker/ ) installation
- Alternatively, you can use [Podman ](https://podman.io/docs/installation ) and [Podman Compose ](https://github.com/containers/podman-compose ).
- The following ports are not in use
2024-03-03 17:43:59 +01:00
- 3030
2024-03-03 17:35:31 +01:00
- 25432
- 26379
2023-05-11 15:11:28 +02:00
2024-03-03 17:35:31 +01:00
### Start up the environment
2023-05-11 15:11:28 +02:00
2024-03-03 18:33:46 +01:00
1. Download the [`dev` directory ](https://firefish.dev/firefish/firefish/-/tree/develop/dev ) and execute `chmod +x dev/docker-entrypoint.sh` .
- Alternatively, you can just run `git clone https://firefish.dev/firefish/firefish.git && cd firefish` to fetch needed files (it clones the entire repository, though).
2024-03-03 17:45:25 +01:00
1. Open `dev/docker-compose.yml` and set `URL` to the URL you want to use (or leave it to `http://localhost:3030` ).
2024-03-03 17:35:31 +01:00
1. Run `docker compose --file dev/docker-compose.yml up` . This will build the environment, dependencies and prepare the needed config files.
- If you use Podman, you should run `podman-compose --file dev/docker-compose.yml up` instead.
1. Wait until the following message shows up.
```
DONE * [core boot] All workers started
2024-03-03 17:43:59 +01:00
DONE * [core boot] Now listening on port 3030 on https://your_firefish_url.example.com
2024-03-03 17:35:31 +01:00
```
1. A fresh Firefish environment is created on the URL you have set!
2023-05-11 15:11:28 +02:00
2024-03-03 17:35:31 +01:00
When you want to restart the dev server, you just need to terminate the process (a.k.a. press `Ctrl+C` ) and run `docker compose up` again.