Coder Social home page Coder Social logo

mb-challenge's Introduction

License: MIT

MB test

Candidate challenge for PHP Developer position at MB.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Installation

Install Using Docker Compose

Repository

https://github.com/GilmarBrito/mb-challenge

Prerequisites
Docker Environment
  • PHP v8.3.2
  • Nginx Latest
  • MySQL v8.3.0
Steps

Step 1 - Clone this repo:

git clone [email protected]:GilmarBrito/mb-challenge.git

or

git clone https://github.com/GilmarBrito/mb-challenge.git

Step 2 - Open folder:

cd mb-challenge

Step 3 - Run the containers:

docker compose up --build -d

Step 4 - Install backend dependencies:

docker compose exec php-service composer install && composer dump-autoload --optimize

Step 5 - Install frontend dependencies:

docker compose exec php-service npm install && npm run build

Step 6 - Run Laravel config commands:

docker compose exec php-service php artisan key:generate && php artisan optimize:clear

Step 7 - Run Laravel migrations and seeders:

docker compose exec php-service php artisan migrate --seed
Execute (After run up docker containers)
Others command that you can run

Check code style

docker compose exec php-service composer check-style

Run tests

docker compose exec php-service composer run-tests

Run static analise

docker compose exec php-service composer run-analise
  • PS.:
    • To run the application, port 8080 on localhost (127.0.0.1) must be free.
    • The .env was posted with the api-key just to facilitate installation by the evaluator. We do not recommend this practice.
    • The user and password data was posted just to facilitate installation by the evaluator. We do not recommend this practice.
    • The api-key was created precisely for this challenge, so it can be shared in the repository.
    • The tests do not have complete coverage. The main purpose here is to demonstrate knowledge. I considered doing that because this is just a challenge made in my free time.

mb-challenge's People

Contributors

gilmarbrito 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.