Code Monkey home page Code Monkey logo

booking-calendar's Introduction

Calendrier de réservation

Logiciel web libre permettant de réserver des dates dans un calendrier.

License

Logiciel libre sous license AGPL V3

Installation

Dépendances :

  • php >= 5.6
  • php-pdo
  • php-sqlite3

Sur debian :

sudo aptitude install php php-pdo php-sqlite3

Récupération des sources :

git clone https://github.com/jblemetayer/booking-calendar.git

Installation des dépendances :

composer install

Pour le lancer :

php -S localhost:8000 -t public

Configuration

Création du dossier tmp utilisé par fatfree pour stocker les fichiers compilés, etc :

mkdir tmp
sudo chown www-data:username tmp/
sudo chmod g+w tmp/

Il faut créer le fichier de configuration config/app.conf à partir du modèle existant (app.conf.example) et l'adapter selon vos usages :

cp config/app.conf.example config/app.conf

Base de données

La base de données SQLite est embarquée dans le projet. Il faut la créer à partir du modèle qui contient son schéma relationnel :

cp database/datas.sqlite.example database/datas.sqlite
sudo chown www-data:username database/datas.sqlite
sudo chown www-data:username database/

Déployer avec apache

DocumentRoot /path/to/booking-calendar/public
DirectoryIndex index.php

<Directory /path/to/booking-calendar/public>
  AllowOverride All
  Require all granted
</Directory>

<Location "/admin/">
  AuthType Basic
  AuthName "Restricted Access"
  AuthUserFile /path/to/file/.htpasswd
  Require valid-user
</Location>

Pour sécuriser l'accès à l'administration il faut créer le fichier .htpasswd contenant les identifiants d'accès à l'administration :

sudo htpasswd -c /path/to/file/.htpasswd username

Activer le mode rewrite pour la prise en charge du routage :

sudo a2enmod rewrite

Librairies utilisées

booking-calendar's People

Contributors

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