Skip to content

culturagovbr/id-cultura

 
 

Repository files navigation

Login Cidadão

Build Status Scrutinizer Code Quality Join the chat at https://telegram.me/IdentidadeDigital Receive updates at https://telegram.me/logincidadao

Requirements

Running an Identity Provider is not an easy task. If you plan to maintain one yourself, you MUST:

FULLY understand:

Have at least a very good understanding of:

To perform customizations you MUST have a good understanding of:

If you fail to comply with the aforementioned requirements you and your users are very likely going to get hurt

OS Dependencies

PHP Extensions

  • php5-curl
  • php5-intl
  • php5-mysql or php5-pgsql or your preferred driver
  • php5-memcache (you can use php5-memcached instead, just remember to change the Memcache classes to Memcached)

System Configuration

  • php timezone (example: date.timezone = America/Sao_Paulo)
  • write permission to app/cache, app/logs and web/uploads

Docs

Read the docs

Setup (Development)

Linux

Requirements

  • Sudoer user
  • PHP CLI
  • ACL-enabled filesystem
  • Composer

Before you start

It's highly recommended to create your app/config/parameters.yml before installing to avoid database connection problems.

You can start by using app/config/parameters.yml.dist as a template by simply copying it to the same folder but naming it as parameters.yml, then edit the default values.

Running the script

Check if your environment meets Symfony's prerequesites:

php app/check.php

Just execute the install.sh script and follow instructions in case of errors or warnings. Then run:

php app/console server:run

Browse to http://localhost:8000

Vagrant

Requirements

Before you start

It's highly recommended to create your app/config/parameters.yml before installing to avoid database connection problems.

You can start by using app/config/parameters.yml.vagrant as a template by simply copying it to the same folder but naming it as parameters.yml, then edit the default values. Do not edit database values if you want to use the default vm database.

Run

$ vagrant up

General Steps for Installation

Instructions in Brazilian Portuguese

Packages

No packages published

Languages

  • PHP 55.4%
  • HTML 21.7%
  • JavaScript 18.3%
  • CSS 4.3%
  • Shell 0.3%
  • Batchfile 0.0%