TheIOFoundation / ProjectLockdown

Project Lockdown (an initiative from The IO Foundation) is a civic tech, interactive platform providing an overview of the state of Human and Digital Rights around the globe. It evaluates policies obtained from official sources that may impact their observance. It provides, among other tools, a layered map interface that allows for a visual representation of the policies adopted, assisting a broad range of stakeholders in understanding the global state of their Rights. This empowers them to become active agents of global change.
https://ProjectLockdown.world
GNU General Public License v3.0
36 stars 14 forks source link

[API] Config file #399

Closed maingockien01 closed 3 years ago

maingockien01 commented 3 years ago

@jeff-knurek As you said the config will be read from environment variables, I made some changes to config.ts file. It will:

File .sample-env is added as a reference in the Reference folder.

Some dependencies are added in package.json:

Config.test.ts is the unit test file for config.ts

In the future, if there is more config, what we need to do are adding new key-value pair to .env, and adding new code/objects to config.ts

sonarcloud[bot] commented 3 years ago

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication