Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mogria/rhymebin
A single page application for finding rhymes with its own rhyme database.
https://github.com/mogria/rhymebin
Last synced: 1 day ago
JSON representation
A single page application for finding rhymes with its own rhyme database.
- Host: GitHub
- URL: https://github.com/mogria/rhymebin
- Owner: mogria
- Created: 2016-05-04T15:50:00.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-02T07:58:00.000Z (almost 8 years ago)
- Last Synced: 2024-11-07T08:50:08.374Z (about 2 months ago)
- Language: PHP
- Homepage:
- Size: 632 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RhymeBin
A single page application for finding rhymes with its own rhyme database. You need to populate the database yourself (as of now). Every word also needs the information on how to split syllables and the phonetic sign for it's vowel. This information is then used to give better rhymes and find more rhymes.
## Development
For the Backend the Lumen Framework is used along with eloquent as ORM.
On the front-end angular is being used to communicate with the lumen API (on `/api`).### Requirements & Setup
To develop you need to have the following tools installed:
* `node`, `npm`
* `php` >= version 5.6
* `composer`Then run the `install.sh` script in the root of the repository
./install.sh
If you have these installed either install bower & gulp with the following command
npm install -g bower gulp
Or install [`direnv`](https://github.com/direnv/direnv) and type the following command while in the root of the repository:
direnv allow
This will add `vendor/bin` and `node_modules/{gulp,bower}/bin` to your path while you are inside the repository with your shell.### Running in development mode
For development you can use the `serve.sh` script to run PHPs own internal webserver on `127.0.0.1:1337`.
$ ./serve.sh
____ _ _ _ _ _ ____ _
| _ \| |__ (_) (_)_ __ ___ (_)_(_) __ )(_)_ __
| |_) | '_ \| | | | '_ ` _ \ / _ \| _ \| | '_ \
| _ <| | | | |_| | | | | | | __/| |_) | | | | |
|_| \_\_| |_|\__, |_| |_| |_|\___||____/|_|_| |_|
|___/
RhymeBin: killing previous processes, if they are still running
RhymeBin: Running gulp watch with live-reload ...
RhymeBin: Running PHPs own webserver on 127.0.0.1:1337 WEBROOT=public/ ...
PHP 5.6.11-1ubuntu3.4 Development Server started at Thu Oct 13 21:58:59 2016
Listening on http://127.0.0.1:1337
Document root is /home/mogria/Code/rhymebin/public
Press Ctrl-C to quit.
[21:59:00] Using gulpfile ~/Code/rhymebin/gulpfile.js
[21:59:00] Starting 'js-combine'...This will automatically run gulp & LiveReload. LiveReload only works for CSS, Images and Javascript files. For the anglar templates to reload you need to refresh the page.
### Testing
PHPUnit is used as the testing framework. You can run the tests like this:
phpunit
## Deployment
[Deployer](https://github.com/deployphp/deployer) is being used to deploy this project to a server. See the [`deploy.php`](https://github.com/mogria/rhymebin/blob/master/deploy.php) for the configuration.
For production LiveReload is being disabled and `gulp --production` is run. This will combine all HTML, angular templates, CSS & HTML into a single file and save it in `public/index.html`. There is also a `.htaccess` which gets generated for easy integration with apache. Just make the `public` folder the RootDirectory of your VirtualHost.
Additionally you need to configure your `.env` file for your sever for the database backend (but just once, because it's shared between releases).
**Important:** Don't forget to change the `APP_SECRET`.## License
The Rhymebin is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)