Determine your energy label through an interactive platform
- PHP >= 5.5.9
- OpenSSL PHP Extension
- PDO PHP Extension
- Mbstring PHP Extension
- Tokenizer PHP Extension
- Database (one of these)
- MySQL
- Postgres
- SQLite
- SQL Server
If this is the first time that you use laravel, check out the getting started guide from laravel.
A good PHP development environment is Homestead.
- Clone this repo from
https://github.com/oSoc15/leiedal-plong
- Run
composer install
from the root directory of the cloned repository - Change your environment to your credentials (copy env.example, rename to .env and fill out your credentials)
- Run
php artisan migrate
to create the database tables and relationships - Run
php artisan db:seed
to seed the tables - Run
npm install -g gulp bower
to install to build system and client package manager - Run
npm install
to pull the dependencies - Run
bower install
to pull the client dependencies - Run
gulp
to monitor the changes in CSS and JS files. Has to be launched to develop the frontend
The manual can be found here: Manual.
This shows all the questions in the API. A question consist of multiple answers.
Gives the specific information of the section. The answers bound to this question will also be shown.
Gives an overview of all residences that are in the system, with their score and other information.
Creates a residence.
parameters:
- city : string
- postalCode : integer
- street : string
- number : integer
- lat : float
- long : float
This returns the instance of residence with all attributes with the provided hashids for identification.
Post the choosen answer to the question.
parameters:
- residence (the returned hashids when you created the residence) : string
- question (the id of the current question) : integer
- answer (the id of the choosen answer) : integer
- unknown (has the user choosen the 'Weet ik niet' reply) : boolean
- input (the input from the user, set answer and unknown to null)
Returns the updated residence, the current question and the possible answers.
This project uses the laravel framework and AngularJS.