How to get started¶
Follow the steps below to get a local development environment up and running.
You need to be member of the Github organization lth-fed.
Expectations¶
This guides expects you to:
- know how to run simple commands and navigate in the terminal
- have a code editor set up with all needed extensions
Prerequisites¶
Before you can start developing, you need to install the following tools:
Note
If you're running Windows, it's highly recommended to first install WSL. This sets up a Linux environment on your Windows machine and simplifies development.
When you have WSL installed, you can open a WSL terminal and follow the instructions below as if you were using Linux normally.
Be sure to always open a WSL terminal when doing development; Powershell is ass.
- Install Node.js.
Using nvm to install Node.js is strongly recommended. Another option is to simply use the one installed on your system or to install it using your system's package manager.
The installation steps are provided below for reference, but for up-to-date instructions, visit the link above. Open a terminal and run the following commands:
# installs nvm (Node Version Manager)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.4/install.sh | bash
Restart your terminal.
# Download and install Node.js LTS
nvm install 24
# verifies the right Node.js version is in the environment
node -v # should print `v24.12.0`
# verifies the right npm version is in the environment
npm -v # should print `10.9.3`
Now, install the package manager pnpm. Installing pnpm using Corepack is recommended. Another option is to simply install it with your system's package manager (pacman -Sy pnpm).
Note
if your installation of Node.js is newer than v25, you must first install corepack: npm i -g corepack
Starting the frontend / backend with containers (no need to build)¶
The frontend and backend repo contains compose.<backend/frontend>.yaml which starts pre-built containers, so you don't have to build the entire backend/frontend.
For the backend compose (which is placed in the frontend repo), you have to go to http://localhost:9000, log in using rustfs, password rustfs and create the bucket image. Otherwise creating activities won't work.
When logging in on the admin page, use tlth@example.org. The login link will be printed in the console.
Remember to podman compose pull occasionally, so you get the latest images!!
Setting up the project¶
If you want to develop, do this for the repo you want to develop. Use the method described above when not developing them (i.e. do this for frontend & previous method for backend when you're a frontend dev).
- Clone the repos into a folder called
fedand change into the directory.cd fed git clone https://github.com/lth-fed/frontend # needed if you plan on working with the frontend git clone https://github.com/lth-fed/admin-frontend # needed if you plan on working with the backend / admin page git clone https://github.com/lth-fed/backend # needed if you plan on working on the backend git clone https://github.com/lth-fed/docs # these guides among other things - See further instructions in the repos for how to install the dependencies & get started.
- If you are using an AI agent, there should already be
AGENTS.md / CLAUDE.mdfiles which aid the agent in finding the right info quickly. The agent (with our custom system prompt) at esek/ai is optimized for this kind of work.
Troubleshooting¶
Node.js permissions issues¶
If you encounter permission issues when running the pnpm install command, you may have installed Node.js using sudo. This can cause permission issues when installing packages. To fix this, we recommend uninstalling Node.js completely and reinstalling it without sudo using nvm.