Skip to content

dmshved/welltrip

Repository files navigation

Welltrip API

Welltrip is an implementation of task from a real job interview

The full version of this task: Laravel hiring test

The short version of the goals

  • DB structure (image at the end of this list)
  • Get the list of public & paginated travels: /travels
  • Get the list of paginated tours: /travels/{travel-slug}/tours
  • Tours filtering and ordering by: priceFrom, priceTo, dateFrom, dateTo
  • Roles (admin & editor)
  • Create users artisan command
  • Admin endpoint: create new travels, with middleware role:xxxxx
  • Admin endpoint: create new tours for travels
  • Editor endpoint: update travel
  • Automated Tests with Pest
  • API Documentation with Scribe

welltrip_db

Installation

  • Clone the repository
https://github.com/dmshved/welltrip.git
  • Copy .env.example file to .env and edit database credentials there
copy .env.example .env
  • Install dependencies
composer install
npm install
  • Generate key
php artisan key:generate
  • Run migrations
php artisan migrate
  • Seed the database with test data (runs the roles seeding)
php artisan db:seed
  • Run the application
php artisan serve 
  • Create a user using artisan command
php artisan users:create 

About

Travel Agency API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages