Internships manager

Internships manager

  • Docs
  • API
  • Tuto
  • Help
  • GitHub

›Get started

Get started

  • Installation
  • Settings

Services

  • Mailer service

Software architecture

  • Back end part
  • Front end part

Settings

The settings file

The settings file is available under services/.env, it will not be created at start because we had it to .gitignore. Copy the services/.env.example file if you first.

We use module dotenv to handle settings in the APP.

Environments variables

NameCommentDefault
MYSQL_HOSTlocalhost or remote server access IP (e.g. 12.35.284.22)localhost
MYSQL_USERSQL user nameroot
MYSQL_DATABASESQL database namestages
MYSQL_PASSWORDSQL connection password/
ORM_DROP_DB_ON_STARTSet to true if you want to reset database at each server restartfalse
ORM_LOGGINGSet to true if you want to debug SQL requestfalse
SESSION_SECRETRandom alphanum seed/
CAS_URLYour CAS url/
SERVICE_URLYour service url (use for redirect)/
CAS_DEV_MODEIf CAS is in dev modetrue
HASH_KEYRandom alphanum seed, length=32/
INTERNSHIP_ENIB_API_VERSIONUsed to change API versionning pathv1
INTERNSHIP_ENIB_API_PORTAPI port4000
BASE_STORAGE_DIRDirectory for files/caches
SMTP_HOSTSMTP Hostsmtp.ethereal.email
SMTP_PORTSMTP Port587
SMTP_SECURESMTP Securefalse
SMTP_AUTH_USERSMTP Auth user/
SMTP_AUTH_PASSSMTP Auth pass/

Generate random seed

To generate random seed, you could go to RANDOM.ORG Generate 2 random string using following options:

  • Generate 2
  • Length 32
  • Numeric digit (0-9) true
  • Uppercase letters (A-Z) true
  • Lowercase letters (a-z) true
  • Each string should be unique (like raffle tickets) true
← InstallationMailer service →
  • The settings file
  • Environments variables
  • Generate random seed
Copyright © 2019 ENIB