Skip to content

felleslosninger/einnsyn-frontend

Repository files navigation

eInnsyn

⚠️ 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).

Built With

This project is built with the following technologies:

Getting Started

To get a local copy up and running, follow these steps.

Prerequisites

You need to have Node.js and a package manager installed on your system.

Installation

  1. Clone the repo

    git clone https://github.com/felleslosninger/einnsyn-frontend.git
  2. Navigate to the project directory

    cd einnsyn-frontend
  3. Install packages

    npm install
  4. Set up environment variables

    The application requires several environment variables to connect to the eInnsyn back-end API and other services. Create a .env.local file 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=...
    

Running the Application

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 dev environment:

    npm run dev:dev
  • To connect to the test environment:

    npm run dev:test
  • To connect to the production environment:

    npm run dev:prod

This will start the application at http://localhost:3000.

License

eInnsyn is Open Source software released under the BSD-3-Clause license.

References

About

Frontend for eInnsyn, a service designed to make the Norwegian public sector more open and accessible.

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages