https://github.com/kapitanluffy/weather-locator
https://github.com/kapitanluffy/weather-locator
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kapitanluffy/weather-locator
- Owner: kapitanluffy
- License: mit
- Created: 2019-01-04T11:08:47.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-21T08:48:01.000Z (over 6 years ago)
- Last Synced: 2025-02-07T03:25:33.890Z (3 months ago)
- Language: PHP
- Size: 67.4 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Installation
1. Clone the git repository by entering the following command in your terminal
```
git clone [email protected]:kapitanluffy/weather-locator.git
```2. Install composer dependencies by entering the following command in your terminal.
```
composer install
```3. Download database [here](https://drive.google.com/open?id=12O5EkwF6FEXcWugHyy0TKhhbv0re_gw-)
4. 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
```2. 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*