- Open your terminal and Clone the repository
git clone https://github.com/boosuro/upwork_api_test.git
- Switch to the repo folder
cd upwork_api_test
- Install all the dependencies using composer
composer install
- Copy the example env file and make the required configuration changes in the .env file like Database Connection details
cp .env.example .env
- Generate a new application key
php artisan key:generate
- Run the database migrations (Set the database connection in .env before migrating)
php artisan migrate
- Start the local development server
php artisan serve
- Start the queue worker in new terminal tab to process the jobs that will be dispatched
php artisan queue:work
- Open another terminal tap and generate the Swagger API documentation view
php artisan l5-swagger:generate
After running the command above the Swagger API documentation server will be accessible at http://127.0.0.1:8000/api/documentation
The whole application runs at http://127.0.0.1:8000
- Run the unit tests with
php artisan test
Make sure you set the correct database connection information before running the migrations
php artisan migrate
php artisan serve
The /submit api can now be accessed at
http://127.0.0.1:8000/api/documentation