Giter Site home page Giter Site logo

apex-network-assessment's Introduction

ApexNetwork Backend Developer Assessment

This repository contains the solutions to apex network backend developer assessment role.

Getting Started

This guide assumed you have PHP 8.2+ and Composer installed on your pc.

Clone and Navigate

Clone this repository and navigate into it:

git clone [email protected]:iamolayemi/apex-network-assessment.git

cd apex-network-assessment

Install Dependencies

Install the application dependencies by running the following command:

composer install

Create a .env file

Copy the contents of the .env.example file into a new .env file by running the following command:

cp .env.example .env

Setup Application Key

Generate a new application key by running the following command:

php artisan key:generate

Setup Database

You can use SQLite for the database by default. If you want to use another database, update the database configuration in the .env file.

Create a new SQLite database by running the following command:

touch database/database.sqlite

Run Migrations

Run the database migrations to create the necessary tables by running the following command:

php artisan migrate

Seed Database

Seed the database with dummy data by running the following command:

php artisan db:seed

Setup Laravel Passport

  1. To set up passport oauth keys run the following command:
php artisan passport:keys
  1. Next, you need to setup the Laravel Passport personal access token clients by running the following command:
php artisan passport:client --personal

After running the command, you will be prompted to enter the client name. You can enter any name you want.

Then copy the client id and client secret generated and update the PASSPORT_PERSONAL_ACCESS_CLIENT_ID and PASSPORT_PERSONAL_ACCESS_CLIENT_SECRET in the .env file.

Start the Application

Start the application by running the following command:

php artisan serve

The application should now be running and accessible at http://localhost:8000 in your web browser. You can access the API documentation at http://localhost:8000/docs.

Demo Credentials

You can use the following credentials to test the application:

Admin

User

Running Tests

To run tests for the application you can use this command:

php artisan test

# To run tests with coverage
php artisan test --coverage

apex-network-assessment's People

Contributors

iamolayemi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.