npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@kant2002-diia-inhouse/documents-service

v0.41.1

Published

This repository provides an overview over the flagship product [**Diia**](https://diia.gov.ua/) developed by the [**Ministry of Digital Transformation of Ukraine**](https://thedigital.gov.ua/).

Downloads

7

Readme

Diia

This repository provides an overview over the flagship product Diia developed by the Ministry of Digital Transformation of Ukraine.

Diia is an app with access to citizen’s digital documents and government services.

The application was created so that Ukrainians could interact with the state in a few clicks, without spending their time on queues and paperwork - Diia open source application will help countries, companies and communities build a foundation for long-term relationships. At the heart of these relations are openness, efficiency and humanity.

We're pleased to share the Diia project with you.

Useful Links

| Topic | Link | Description | | --------------------------------------------- | -------------------------- | -------------------------------------------------------------------------- | | Ministry of Digital Transformation of Ukraine | https://thedigital.gov.ua/ | The Official homepage of the Ministry of Digital Transformation of Ukraine | | Diia App | https://diia.gov.ua/ | The Official website for the Diia application |

Getting Started

This repository contains the service which provides acquiring of citizen documents functionality.

Build Process

1. Clone codebase via git clone command

Example:

git clone https://github.com/diia-open-source/be-documents-service.git documents-service

2. Go to code base root directory

cd ./documents-service

3. Install npm dependencies

The installation of dependencies consists of the following 2 steps:

1. Manually clone, build and link dependencies from @kant2002-diia-inhouse scope

Each Diia service depends on dependencies from @kant2002-diia-inhouse/<package> scope which are distributed across different repositories, are built separately, and aren't published into public npm registry.

The full list of such dependencies can be found in the target service package.json file in dependencies and devDependencies sections respectively.

Detailed instructions on how to link dependencies from @kant2002-diia-inhouse/<package> scope can be found in LINKDEPS.md

2. Install public npm dependencies and use those linked from @kant2002-diia-inhouse scope

In order to install and use the linked dependencies for documents-service the following command can be used:

$ cd ./documents-service
$ npm link @kant2002-diia-inhouse/db @kant2002-diia-inhouse/redis ... @kant2002-diia-inhouse/<package-name>

In case all dependencies from @kant2002-diia-inhouse scope are linked, and can be resolved, you will then have a complete list of dependencies installed for the service code base.


4. Build service

In order to build the service you have to run the command npm run build inside the root directory of service code base as per:

$ cd ./documents-service
$ npm run build

5. Run the service locally

In order to run the service locally you need to setup a Docker ecosystem (which runs required services such as Redis, MongoDB etc.), then create a suitable environment file .env, run database migrations (if required) and finally run the service itself in desired mode.

The following walks through these stages step by step...

1. Run docker ecosystem

See how to run ecosystem.

2. Create .env file

In order to create a proper .env file to populate the node process environment you can copy it from .env.example such as:

$ cd ./documents-service
$ cp .env.example .env

3. Run database migrations

In some services there is requirement to create MongoDB schemas before running these in order to make them functional. If the service has migrate script inside package.json then it definitely must be executed.

$ npm run migrate up

4. Run the service

Main execution file is located ./dist/index.js

$ node ./dist/index.js

How to contribute

The Diia project welcomes contributions into this solution; please refer to the CONTRIBUTING.md file for details

Licensing

Copyright (C) Diia and all other contributors.

Licensed under the EUPL (the "License"); you may not use this file except in compliance with the License. Re-use is permitted, although not encouraged, under the EUPL, with the exception of source files that contain a different license.

You may obtain a copy of the License at https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12.

Questions regarding the Diia project, the License and any re-use should be directed to [email protected].

This project incorporates third party material. In all cases the original copyright notices and the license under which these third party dependencies were provided remains as so. In relation to the Typescript dependency you should also review the Typescript Third Party Notices.