Git Product home page Git Product logo

pokeprof's Introduction

Poképrof

Poképrof est un jeu de cartes en ligne, les utilisateurs peuvent créer des cartes, jouer avec etc

Capture d'écran de Brali en 2022

La version Poképrof de l'EISTI (ex CY Tech) est actuellement à cette URL : ambi.dev/pokeprof. (BDD MariaDB, PHP 8.2) La branche master y est auto-déployer à chaque push.

Lancer en local

Il est possible de lancer le projet en local. Pour cela il faut faudra PHP et MySQL (ou MariaDB).

  • cloner le projet
  • créer un fichier credentials.php dans le dossier api contenant identifiants de la base de données, sous cette forme :
<?php
define('POKEPROF_DB_HOSTNAME', 'localhost');
define('POKEPROF_DB_USER', 'user');
define('POKEPROF_DB_PASSWORD', 'password123');
define('POKEPROF_DB_NAME', 'pokeprof');
define('POKEPROF_WEBHOOK_CARD_CREATE', null);
define('POKEPROF_WEBHOOK_CARD_EDIT', null);
define('POKEPROF_WEBHOOK_ERROR', null);
define('POKEPROF_CONNECT_URL', 'http://localhost/connect.php?app=pokeprof&params=');
define('POKEPROF_AVATAR_URL', 'http://localhost/avatar.php?id=');
define('POKEPROF_USER_URL', 'http://localhost/api/user.php?token=');
?>
  • exécuter dans la base de données le script SQL init.sql
  • optionnel : faire en sorte que onceaday.php s'exécute une fois par jour
  • si besoin : chown -R www-data:www-data cached assets/cards
  • lancer le serveur php

Administration

Le jeu n'est pas autonome, il nécessite une intervention humaine pour être jouable. Notamment pour la modération des cartes et la création des scripts.

Des explications sur la création des scripts sont disponibles dans scripts.md.

pokeprof's People

Contributors

leolaiolo avatar ptlc8 avatar

Stargazers

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