- PHP >= 7.0
- OpenSSL PHP Extension
- PDO PHP Extension
- Mbstring PHP Extension
- Clone the Github-Project:
git clone https://github.com/Hokan22/rest-example.git
- Go into the project folder
cd rest-example
- Setup the Composer Project:
composer install
- Get Composer: https://getcomposer.org/download/
- Copy
env.example
to.env
- Optional: Set
APP_KEY
to a random string
- Optional: Set
- Create the Database
- Create sqlite file
touch database/database.sqlite
- Create the database tables
php artisan migrate
- Populate the database with example data
php artisan db:seed
- Create sqlite file
- Start the application
php -S localhost:8000 -t public
- Go to
localhost:8000/api/candidate
to get a json with all generated candidates
To run tests run the command composer test
.
The project is open-sourced software licensed under the MIT license
Laravel Lumen is a stunningly fast PHP micro-framework for building web applications with expressive, elegant syntax. We believe development must be an enjoyable, creative experience to be truly fulfilling. Lumen attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as routing, database abstraction, queueing, and caching.
The Lumen framework is open-sourced software licensed under the MIT license