An open API service indexing awesome lists of open source software.

https://github.com/srph/e-dental

:hospital: IT22-FA3 EDMS, built with Laravel
https://github.com/srph/e-dental

Last synced: 8 months ago
JSON representation

:hospital: IT22-FA3 EDMS, built with Laravel

Awesome Lists containing this project

README

          

## E-Dental [![Author | Shields.io](http://img.shields.io/badge/author-%40srph-blue.svg?style=flat-square)](http://twitter.com/_srph) [![MIT license](http://img.shields.io/badge/license-MIT-brightgreen.svg)](http://opensource.org/licenses/MIT)

[![Preview](https://cloud.githubusercontent.com/assets/5093058/5860329/a0056576-a29b-11e4-844d-39839ec50b9d.png)](https://cloud.githubusercontent.com/assets/5093058/5860329/a0056576-a29b-11e4-844d-39839ec50b9d.png)

A quickie for a project on IT22-FA3, built with Laravel.

**As of Mar 15, 2015**, this project has been [rewritten from scratch](https://github.com/srph/e-dental-re).

## Building

### Requirements

1. PHP ```>=5.4```
2. MySQL ```~5.5```
3. [Composer](https://getcomposer.org)
4. Bower (which requires ```npm``` and ```nodejs```)

### Installing

[1] Clone the repository.

```bash
$ git clone https://github.com/srph/e-dental.git

# switch the current direct to the cloned repository
$ cd e-dental
```

[2] **Update dependencies**

```bash
# Install PHP dependencies
$ composer install

# Install Bower (static assets) dependencies
$ bower install
```

[3] **Installing the database**

Create a database on MySQL first.

```bash
mysql -u root -p
CREATE DATABASE `edms`;
```

And then, register your machine to the list of detected environment at `bootstrap/start.php`:

```php
/*
|--------------------------------------------------------------------------
| Detect The Application Environment
|--------------------------------------------------------------------------
|
| Laravel takes a dead simple approach to your application environments
| so you can just specify a machine name for the host that matches a
| given environment, then we will automatically detect it for you.
|
*/
$env = $app->detectEnvironment(array(
// Other environment..

'your-environment-name' => array('your-machine-name'),
));
```

\* Replace `your-environment-name` with any unique name (this will be used to identify which environment (or configurations) to use), and `your-machine-name` of course the computer name.

Proceed to the configurations located at `app/config/` to create your own folder (the same as your environment name). And then create `database.php` on the same folder (now, you have `app/config/myMachine/database.php`).

Paste this in:

```php
'mysql',

'connections' => array(
'mysql' => array(
'driver' => 'mysql',
'host' => 'localhost',
'database' => 'edms', // YOUR PREFERRED DB NAME
'username' => 'forge', // YOUR MYSQL USERNAME
'password' => 'forge', // YOUR MYSQL PASS
/** reduced for bevity */
),
)
);
```

Run the migrations.

```bash
# on your root folder
$ php artisan migrate # run the table migration
$ php artisan db:seed # seed data
```

## Limitations

- Bad UX overall.
- Bad practices all over the place.

Do not read this shit for *Best Practices™* . Thanks.

## Acknowledgement

**e-dental** © 2014+, Kier Borromeo (srph). Released under the [MIT](http://mit-license.org/) License.

> [srph.github.io](http://srph.github.io)  · 
> GitHub [@srph](https://github.com/srph)  · 
> Twitter [@_srph](https://twitter.com/_srph)

[MIT]: http://mit-license.org/