To get started with the project, follow these steps:
-
Clone the repository:
git clone git@github.com:digdir/norge.no.git
-
Navigate to the project directory:
cd norge.no -
Set correct environment variables in the frontend directory:
cp ./apps/frontend/.env.example ./apps/frontend/.env
-
Make sure you have the required tools installed.
- Deno (for workspace and Astro)
- Docker (for running the database)
- Docker Compose
-
Install the workspace dependencies:
deno install --allow-scripts=npm:sharp@0.33.5
-
Open a new terminal at the project directory
-
Open your browser and go to
http://localhost:4321to see the application running.
-
Start the frontend service in a new terminal:
docker-compose up --build frontend
(Optional) Alternatively, you can run all three services together by running the following command in a new terminal:
docker-compose up --watch --build
This will start all three services, but rebuild the frontend service automatically when the
./apps/frontend/.envfile changes. -
Open your browser and go to
http://0.0.0.0:8085for the frontend to see the applications running.
Learn how you can contribute to this project by reading our Code of Conduct and Contributing Guide.