Feel free to submit issues, pull requests, and fork the repository.
To develop the package, clone the project and install the cloned repository as a dependency in your own project, or install the package directly to your project from a GitHub branch or fork.
Remember to rebuild the package after making changes by using npm run build
in the package directory, as projects will only utilize compiled .js
and .d.ts
files.
git clone https://github.com/NTNUI/ntnui-tools
cd ntnui-tools && npm install
cd my-project
npm i local/path/to/ntnui-tools
You can npm install
directly from GitHub if you have your own branch, commit and/or fork of the package.
cd my-project
## Branch
npm i https://github.com/NTNUI/ntnui-tools#branch
## Fork or commit hash
npm i https://github.com/{username}/ntnui-tools#commit
The default API URL is https://api.ntnui.no
. It can be useful to change it by setting NTNUI_TOOLS_API_URL
as an environment variable during development.
ntnui-tools uses dotenv to support loading environment variables from a .env
file.
# .env in your project root
NTNUI_TOOLS_API_URL = 'https://dev.api.ntnui.no'