Coder Social home page Coder Social logo

aylarius / laloupe-0916-smart Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wildcodeschool/laloupe-0916-smart

0.0 2.0 0.0 14.32 MB

Project 3 - Symfony 2.8 / Angular 1.6 Application - Wild Code School - Jan. 17

Home Page: http://what-i-watch.wcsscho.odns.fr/

ApacheConf 1.01% PHP 30.07% HTML 25.65% CSS 22.46% JavaScript 20.80%

laloupe-0916-smart's Introduction

WhatiWatch

Projet Symfony2 (version 2.8) et AngularJS (version 1.6) créée pour la mise en place d'un site de suivi des séries TV.

Pré-requis

Composer ==> https://getcomposer.org/
Symfony 2.8 ==> https://symfony.com/download

Bundles

LexikJWTAuthenticationBundle ==> https://github.com/lexik/LexikJWTAuthenticationBundle
NelmioCORS ==> https://github.com/nelmio/NelmioCorsBundle
AppBundle
SerieBundle

Procédure d'installation

1 - Pour cloner le projet, saisir dans le terminal :
git clone https://github.com/WildCodeSchool/laloupe-0916-smart.git

2 - Entrer dans le dossier :
cd laloupe-0916-smart

3 - Installer composer en saisissant dans le terminal :
composer install

Attention, si vous n'avez pas composer installé sur votre machine :

php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"   
php -r "if (hash_file('SHA384', 'composer-setup.php') === 'aa96f26c2b67226a324c27919f1eb05f21c248b987e6195cad9690d5c1ff713d53020a02ac8c217dbf90a7eacc9d141d') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"    
php composer-setup.php     
php -r "unlink('composer-setup.php');"  
mv composer.phar /usr/local/bin/composer

4 - Générer la clé SSH nécessaire au bundle LexikJWTAuthenticationBundle :

$ mkdir -p var/jwt # For Symfony3+, no need of the -p option
$ openssl genrsa -out var/jwt/private.pem -aes256 4096
$ openssl rsa -pubout -in var/jwt/private.pem -out var/jwt/public.pem

5 - A la fin du composer install, configurer la base de donnée

database_name (symfony):  
database_user (root):   
database_password (null):

6 - Créer votre base de données via le terminal :
php app/console doctrine:database:create

7 - Mettre à jour votre base de données via le terminal :
php app/console doctrine:schema:update --force

8 - Ajouter les clés SSH au fichier parameters.yml.dist :

jwt_private_key_path: '%kernel.root_dir%/../var/jwt/private.pem' # ssh private key path
jwt_public_key_path:  '%kernel.root_dir%/../var/jwt/public.pem'  # ssh public key path
jwt_key_pass_phrase:  ''                                         # ssh key pass phrase
jwt_token_ttl:        3600

9 - Enfin mettre les droits sur le projet en saisissant dans le terminal :
sudo chmod -R 777 app/cache/ app/logs/

10 - Ajouter et lier les assets (le dossier Resources/public)
php app/console assets:install --symlink

11 - Vous pouvez désormais afficher le site via votre localhost de cette façon :
localhost/laloupe-0916-smart/web/

laloupe-0916-smart's People

Contributors

aylarius avatar arnaud12 avatar mrdrannoc avatar celine-langlade avatar

Watchers

James Cloos avatar  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.