No description, website, or topics provided.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
bin
src
tests/AppBundle
var
web
.gitignore
LICENSE
README.md
composer.json
composer.lock
phpunit.xml.dist

README.md

Installation

  1. Clone the git repository by entering the following command in your terminal
git clone git@github.com:kapitanluffy/weather-locator.git
  1. Install composer dependencies by entering the following command in your terminal.
composer install
  1. Download database here

  2. Copy database to ./var/data/data.sqlite.

This app was built and tested under PHP 7.1

Running

  1. You can use the built in php web server by running the following command in your terminal.
php bin/console server:run
  1. Access the app in your preferred browser by putting the following url in the address bar.
http://localhost:8000/

You can use also use a dedicated web server of your choice. Popular choices are nginx and apache. You just need to take note that you should point the "public" directory to ./web

Configuration and setup will vary depending to the web server of your choice. I suggest you refer to the documentation of the web server of your choice for setting this up.

Testing

Run unit tests by entering the following command in your terminal.

php vendor/bin/simple-phpunit

Take note that all commands are assumed to be run in the applications root directory