Skip to content
This repository was archived by the owner on Jan 22, 2024. It is now read-only.

Hokan22/rest-example

Repository files navigation

Rest Coding Task

License

Requirements

  • PHP >= 7.0
  • OpenSSL PHP Extension
  • PDO PHP Extension
  • Mbstring PHP Extension

Setup

  1. Clone the Github-Project: git clone https://github.com/Hokan22/rest-example.git
  2. Go into the project folder cd rest-example
  3. Setup the Composer Project: composer install
    1. Get Composer: https://getcomposer.org/download/
  4. Copy env.example to .env
    1. Optional: Set APP_KEY to a random string
  5. Create the Database
    1. Create sqlite file touch database/database.sqlite
    2. Create the database tables php artisan migrate
    3. Populate the database with example data php artisan db:seed
  6. Start the application php -S localhost:8000 -t public
  7. Go to localhost:8000/api/candidate to get a json with all generated candidates

Tests

To run tests run the command composer test.

License

The project is open-sourced software licensed under the MIT license

Made with Laravel Lumen

Latest Stable Version 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.

License

The Lumen framework is open-sourced software licensed under the MIT license

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages