Skip to content

murage-poc/palmina

Repository files navigation

Palmina

Laravel based technical test

Available API Routes

Endpoint Description Sample
/api/v1/auth/login User login with user/password. Returns a token (sanctum)
/ api/v1/auth/register Register a user account
/api/v1/users/me Get user account. Expects a bearer token

Sample body /api/v1/auth/register

{
    "name":"Jane Doe",
    "password":"password@1234",
    "password_confirmation":"password@1234",
    "email":"[email protected]",
    "phone_number":"254712345678"
}

Sample body /api/v1/auth/login

{
    "password":"password@1234",
    "email":"[email protected]"
}

Local setup

Prerequisite

  • PHP 7.4+
  • Mysql database
  • Composer
  1. Install project php dependencies with composer composer install
  2. Create a database and update the credentials in .env file
  3. Run migrations php artisan migrate
  4. Seed the database table with some users php artisan db:seed

Using sail

  1. Publish docker-compose
php artisan sail:install
  1. Start the application
./vendor/bin/sail up

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks