Event locator

This is a simple web application and API for events locator. It is built using Laravel. Check the hosted application here

  • Web based
  • REST API

Requirements

  • PHP, Composer

  • MySQL database

Set up the application 🛠

Clone the repo

git clone git@github.com:muhozi/Eventlocator-api.git

Install the dependencies

This project uses laravel (php framework) and you need to have a php package manager installed which is Composer

cd Eventlocator-app

composer install

Set up project configurations

Create configuration file (.env)

Copy the contents of .env.example by running the following:

cp .env.examle .env

Generate application key

Run the following command to generate the application key(for encryption and hashing)

php artisan key:generate

Set up Database

Create database and replace DB connnection details section in .env

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=db_name
DB_USERNAME=db_username
DB_PASSWORD=db_password

Run migrations

Run migration by running the following command:

php artisan migrate

Run the application 🚀

Run the application using the following command:

php artisan serve

Authors

Licence

MIT License.