Git Product home page Git Product logo

classe-royale's Introduction

Classe Royale

Gestion ludique de l'évaluation des élèves, à travers cartes d'apprentissage, gain d'or et d'elixir.

Running in dev

Requirements

See Symfony technical requirements

php, composer, yarn and mariadb must be installed.

$ php -v && composer -V && yarn -v && mariadb --version
PHP 7.4.14 (cli) (built: Jan  8 2021 15:34:32) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.14, Copyright (c), by Zend Technologies
    with Xdebug v3.0.2, Copyright (c) 2002-2021, by Derick Rethans
Composer version 2.0.8 2020-12-03 17:20:38
1.22.10
mariadb  Ver 15.1 Distrib 10.5.8-MariaDB, for Linux (x86_64) using readline 5.1

Here are the extensions enabled in my php.ini:

extension=curl
extension=iconv
extension=intl
extension=mysqli
zend_extension=opcache
extension=pdo_mysql
zend_extension=xdebug
extension=zip

Depending on your PHP setup you may install some of these extensions as separate packages with your package manager.

Install project dependencies

Install JS dependencies

$ yarn install

Install PHP dependencies

$ composer install

Install symfony-cli to check that all requirements are met on your machine.

$ symfony check:requirements

Create the dev database

You must have a mysql_user with the ability to create a database. Define DATABASE_URL in .env.local, to look like:

DATABASE_URL=mysql://mysql_user:password@localhost:3306/classe_royale?serverVersion=mariadb-10.5.8

Adapt mysql_user, password and mariadb-10.5.8 to your situation.

Now you can create the database classe_royale with:

$ php bin/console doctrine:database:create
Created database `classe_royale` for connection named default

Finally apply the schema migrations.

$ php bin/console doctrine:migrations:migrate

You can check the status of the migrations.

$ php bin/console doctrine:migrations:status

Sending emails

You must also define an email transport by defining MAILER_DSN in .env.local

Start the server

Build javascript and CSS once.

$ yarn dev

If you plan to edit some style and/or javascript you can start the previous build in watch mode in its own terminal.

$ yarn watch

Then start the PHP server with symfony-cli

$ symfony server:start

or the alias

$ yarn start

You should see the app live at http://localhost:8000/

classe-royale's People

Contributors

dependabot[bot] avatar em-ak avatar jyaire avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

em-ak

classe-royale's Issues

Protéger les données en transit

Ajouter un certificat SSL pour rendre http://classeroyale.jejoueenclasse.fr/ accessible seulement à https://classeroyale.jejoueenclasse.fr/

Ça me semble être un prérequis avant d'ouvrir l'accès à un public plus large (ex. parents), vu que tu ne maitrisera plus les points d'accès utilisés pour se connecter à l'app (et les éventuel intermédiaires malveillants qui écoutent).

En fonction du service d'hébergement utilisé il peut y avoir des options "en un click" accessible dans l'espace d'administration pour activer le https. Sinon il y a moyen de trouver une solution avec letsencrypt qui fournit des certificats gratuits.

Je peux donner un coup de main pour la mise en oeuvre si besoin.

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.