⚠️ Work in progress: Not ready for production⚠️ This repository contains a new front-end application for eInnsyn and is currently under active development.
eInnsyn is a web service designed to enhance transparency in the Norwegian public sector. It offers a user-friendly web interface that allows the public to search for and access documents from various government bodies. This repository contains the source code for the front-end application.
This project is officially developed and maintained by the Norwegian Digitalisation Agency (Digitaliseringsdirektoratet).
This project is built with the following technologies:
To get a local copy up and running, follow these steps.
You need to have Node.js and a package manager installed on your system.
-
Clone the repo
git clone https://github.com/felleslosninger/einnsyn-frontend.git
-
Navigate to the project directory
cd einnsyn-frontend -
Install packages
npm install
-
Set up environment variables
The application requires several environment variables to connect to the eInnsyn back-end API and other services. Create a
.env.localfile in the root of the project:# URL for the backend API API_URL=http://localhost:8080 # Secret for encrypting cookies COOKIE_SECRET=... # Ansattporten OIDC configuration ANSATTPORTEN_URL=https://... ANSATTPORTEN_CLIENT_ID=... ANSATTPORTEN_CLIENT_SECRET=... ANSATTPORTEN_AUTH_DETAILS=...
Once the installation is complete, you can run the development server. There are several scripts available to connect to different backend environments:
-
To connect to a local backend (default):
npm run dev
-
To connect to the
devenvironment:npm run dev:dev
-
To connect to the
testenvironment:npm run dev:test
-
To connect to the
productionenvironment:npm run dev:prod
This will start the application at http://localhost:3000.
eInnsyn is Open Source software released under the BSD-3-Clause license.