Skip to content
Ole Tytlandsvik edited this page Aug 29, 2023 · 1 revision

Welcome to the tdctl-frontend wiki!

This wiki is intended to serve as a good supplement to README.md and CONTRIBUTING.md, which can both be found in the source code. As of right now, it is very limited. Feel free to suggest tutorials and other pages that may be useful here.

FAQ

I'm getting a ton of linter errors in my code editor!

When you run either the frontend or the api through a docker container, all the dependencies are correctly installed on the docker image used in the container and not on your system. The linter in your code editor doesn't have access to the container files, so it doesn't know about the packages that are used in the code. You must manually install them on your system as well to get correct linting and autocomplete.

Frontend

  1. Install npm
  2. Install yarn:
npm install --global yarn
  1. Install the dependencies:
yarn install

Still have linter errors on the frontend? Make sure you open the folder containing tsconfig.json in your editor.

API

Install dependencies with pip:

pip install requirements.txt

I don't have permission to push my code upstream!

To push code upstream you must be a member of the organization td-uit-org-no. Contact nettsideansvarlig via e-mail or ask someone on the IFI discord server to get an invite.