Install the vendors
composer install
Create the folder app/sessions
mkdir app/sessions
chmod -R 755 app/sessions
## Config
### Configure the connect authentication
Create an application on connect, with the following parameters :
Scopes : SCOPE_EMAIL SCOPE_PUBLIC
Redirect URI : http://domain.name/session/callback
Complete the app/config/parameters.yml file :
sensiolabs_connect.app_id: Id
sensiolabs_connect.app_secret: Secret
sensiolabs_connect.scope: SCOPE_EMAIL SCOPE_PUBLIC
Login once, then update the is_admin
user field in the DB.
app/console doctrine:database:create
app/console doctrine:migrations:migrate
To delete from the database all announcements having the status « deleted » since at least x days (default: 20) :
app/console jobboard:jobs:clean
app/console jobboard:jobs:clean --days=20
The API is accessible if the current environment is dev, or only by those urls :
Returns a random job.
#/api/random
{"company":"SensioLabs","country_name":"France","country_code":"FR","id":28,"title":"My great job 28","contract":"INTERNSHIP","url":"http:\/\/domain.name\/FR\/INTERNSHIP\/my-great-job-28"}
Caution : The application provides jobs for every country, so all DateTime are stored in UTC format.
app/console doctrine:fixtures:load
app/console translation:extract fr --config=jobboard --keep --output-format=yml -v
app/console translation:extract en --config=jobboard --keep --output-format=yml -v