Code Monkey home page Code Monkey logo

geolocation-api's Introduction

Laravel Logo

Build Status Total Downloads Latest Stable Version License

Geolocation API

This is a Laravel application that uses Laravel Sail for easy Docker-based development.

Prerequisites

Before you get started, ensure that you have the following software installed on your local machine:

Docker Desktop: You can download it from Docker's official website. Docker Desktop includes Docker Engine, Docker CLI client, Docker Compose, Notary, Kubernetes, and Credential Helper.

Composer: This is a tool for dependency management in PHP. You can download it from Composer's official website.

Installation & Setup

Clone the repository:

git clone https://github.com/panicfilip/geolocation-api

Navigate to the project directory:

cd geolocation-api

Install dependencies with Composer:

composer install

Copy the .env.example file to create your own environment file:

cp .env.example .env

Generate an application key:

php artisan key:generate

Start Laravel Sail:

./vendor/bin/sail up

Or, if you have added the sail command to your system's PATH, https://laravel.com/docs/10.x/sail#configuring-a-shell-alias you can simply use:

sail up

You should now be able to access the application and see Swagger documentation at: http://localhost.

Usage

With Laravel Sail, you can easily interact with your Laravel application within the Docker environment.

Here are some examples of how to use Laravel Sail:

To run Artisan commands:

sail artisan migrate

To run Composer commands:

sail composer require laravel/sanctum

To run tests:

sail test

Stopping Sail

To stop all the Docker containers, you can use the down command:

sail down

PHP Versions

Laravel Sail supports PHP 8.3, 8.2, 8.1, and 8.0. The default PHP version is 8.2. You can change the PHP version by updating the build definition of the laravel.test container in your application's docker-compose.yml file.

Debugging with Xdebug

Laravel Sail's Docker configuration includes support for Xdebug. To enable Xdebug, you need to set the appropriate mode(s) in your application's .env file:

SAIL_XDEBUG_MODE=develop,debug,coverage

Then restart the Sail containers.

License

The Laravel framework is open-sourced software licensed under the MIT license.

Please check the official Laravel Sail documentation for more information about Laravel Sail.

Support

If you encounter any issues or require further assistance, please file an issue on the GitHub repository.

geolocation-api's People

Contributors

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