GithubHelp home page GithubHelp logo

michel's Introduction

SensioLabs Jobs

Installation

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

Authorize yourself as administrator

Login once, then update the is_admin user field in the DB.

Usage

Create DB and run migrations

app/console doctrine:database:create
app/console doctrine:migrations:migrate 

Clean old deleted jobs

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

API

The API is accessible if the current environment is dev, or only by those urls :

GET /api/random

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"}

Dev

Caution : The application provides jobs for every country, so all DateTime are stored in UTC format.

Fill DB with fake data

app/console doctrine:fixtures:load

Extract translations

app/console translation:extract fr --config=jobboard --keep --output-format=yml -v
app/console translation:extract en --config=jobboard --keep --output-format=yml -v

michel's People

Contributors

aloneh avatar mroca avatar saro0h avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.