LogoLogo
CS CONSOLECOMMUNITYDOCS
  • What is code.store?
  • Our vision
  • How it works?
  • Getting started
    • Quick Start
      • Core concepts
      • Quick Start with CLI
      • Quick Start with Web Interface
    • FUNDAMENTALS
      • Services
        • GraphQL
        • REST
        • Configuration
        • Environment Variables
      • Environments
      • Projects
      • Versioning
      • Access and Authorization
      • Secret management
      • Data management
        • Import and Export
      • Generation
        • Models
        • Handlers
        • Resolvers
        • REST
        • Middlewares
      • Logging
      • Microservices
        • Communication
    • RECIPES
      • TypeScript
        • Custom .tslint
      • Basic authentication
      • Setup a local database with your service
      • GraphQL
    • Tutorials
      • Auth0 authentication
      • Metabase integration
      • Database manipulations
        • External database: MongoDB
        • External database: DynamoDB
      • Wrapping an NPM package with GraphQL: a chess server
    • FAQ
  • Command Line Interface
    • Getting started
    • Commands
Powered by GitBook
On this page
  • Overview
  • Service Environment Variables
  • Database Environment Variables
  • Postgres Variables
  • Redis Variables
  • Language-based environment variables
  • TypeScript & JavaScript

Was this helpful?

Export as PDF
  1. Getting started
  2. FUNDAMENTALS
  3. Services

Environment Variables

PreviousConfigurationNextEnvironments

Last updated 4 years ago

Was this helpful?

Overview

By default, each service has different variables, which depends on the environment. For example, database environments, which available on the development environment may differ from the staging environment, and so on... For more information about environments, see the section. Depends on service language, environment variables can be accessed in different ways.

To access environment variables using TypeScript or JavaScript language use:

process.env

code.store platform guarantees a high level of security, but we do not recommend displaying secret variables in the stdout or other sources.

Below, you can find information about available environment variables which code.store platform set by default.

Service Environment Variables

PROJECT_ID internal ID of the project on the code.store platform

ENVIRONMENT_ID name of the , where service deployed

SERVICE_ID internal ID of the service on the code.store platform

Database Environment Variables

Postgres Variables

DATABASE_HOST connection host

DATABASE_PORT connection port

DATABASE_NAME name of the database

DATABASE_USERNAME name of the user which can access to services database

Redis Variables

REDIS_HOST Redis connection host

REDIS_PORT Redis connection port

Language-based environment variables

TypeScript & JavaScript

NODE_VERSION node version, which deployed service used

Environments
environment