/my-oc

My OC is a local app (build with symfony) to help mentors.

Primary LanguageJavaScript

My OC

My OC is a local app (build with symfony) to help mentors.

image

Requirements

  • PHP 7.2.5 or higher
  • SQL Database
  • Composer

Installation

Clone or download this repository

$ git clone git@github.com:XenoX/my-oc.git

Install dependencies

# in project directory
$ composer install

Set env vars

$ cp .env .env.local

Go to .env.local file and set :

DATABASE_URL # Generally change only db_user, db_password and db_name
OAUTH_OC_CLIENT_ID # On OC website (logged), type App.api.anonymous.client_id on console
OAUTH_OC_CLIENT_SECRET # On OC website (logged), type App.api.anonymous.client_secret on console

Set up database

$ php bin/console doctrine:database:create
$ php bin/console doctrine:migrations:migrate

Launch server

Symfony binary required

$ symfony server:start

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Don't forget to use Gitmoji in your commit name.

Please make sure to update tests as appropriate.

License

MIT