Do you want to join the engineering team at Connect, Inc.? Apply here if you have not do.
We have created this coding test in order to gain insights into your development skills. More details are down below.
-
Fork this repository
Please go to this URL and read this through. It explains more details of this coding test and imaginary scenario.
- Make a Pull Request
Don't create a pull request to this repository. Please make a pull request on your repository.
- Send us your Pull Request url that we can access
$ cp .env.example .env
$ composer install
Here is the case with Laravel sail. It depends on you.
$ ./vendor/bin/sail up
$ ./vendor/bin/sail artisan key:generate
$ ./vendor/bin/sail artisan migrate:fresh --seed
Here is the case with Laravel sail. It depends on you.
$ ./vendor/bin/sail artisan test
flowchart LR
Request -- Parameters --> c[Controller]
c --> m[Model]
m -- Data --> c
c -- Resource --> Resource
This repository provides an API for admins to create and publish job data.
- Public
GET /api/jobs
: Get a list of opening jobsGET /api/jobs/{id}
: Retrieve a opening job by its id
- Admin
POST /api/admin/login
: Log inPOST /api/admin/logout
: Log outGET /api/admin/me
: Get currently logged in user dataGET /api/admin/jobs
: Get a list of jobsGET /api/admin/jobs/{id}
: Retrieve a job by its idPOST /api/admin/jobs
: Create a jobPUT /api/admin/jobs/{id}
: Update the jobDELETE /api/admin/jobs/{id}
: Delete the job
Our clients want companies to register their jobs as well. So, we need to provide some APIs:
- Company
POST /api/company/login
: Log inPOST /api/company/logout
: Log outGET /api/company/me
: Get currently logged in user dataGET /api/company/jobs
: Get a list of their jobsGET /api/company/jobs/{id}
: Retrieve a their job by its idPOST /api/company/jobs
: Create a jobPUT /api/company/jobs/{id}
: Update a jobDELETE /api/company/jobs/{id}
: Delete a job