Skip to content

nitaibezerra/login-cidadao

 
 

Repository files navigation

Login Cidadão

Join the chat at https://gitter.im/PROCERGS/login-cidadao

This is the source code for the 'Login Cidadão' (Citizen's Login) project.

This project's main objective is to provide a way for citizens to authenticate against official online services, eliminating the need to create and maintain several credentials on several services.

It also allows government agencies to better understand its citizen's needs and learn how to interact more effectively with them.

Note: Since this project is just on it's initial stages, it's not recommended to fork it just yet.

Dependencies

  • PHP >=5.3.3
  • composer
  • node.js

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)

Docs

Read the docs

Setup - Development

Setting up on 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

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

Setting up on Windows

Currently we do not have a setup script for Windows, but it should be pretty straightforward to convert the install.sh to be Windows compatible.

General Steps for Installation

  1. Make sure the following directories are writeable by your http/PHP user via ACL permissions (you can read more here):
  • app/cache
  • app/logs
  • web/uploads
  1. Make sure you have all dependencies and needed PHP extensions installed.

  2. Check if your environment meets Symfony's prerequesites:

    $ php app/check.php

  3. Run $ composer install

  4. Create the database if you didn't do it yet:

    $ php app/console doctrine:database:create

  5. Create the schema:

    $ php app/console doctrine:schema:create

  6. Point your server's Document Root to the /web folder and make sure app.php is your index. Symfony already comes with .htaccess to do it for you on Apache.

About

Projeto Login Cidadão

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 55.7%
  • HTML 20.9%
  • JavaScript 19.2%
  • CSS 3.7%
  • Shell 0.3%
  • ApacheConf 0.2%