Office-O-Mat
A simple web application for office use, such as time and events tracking, employment management and more!
- PHP > 5.3.9
- Composer
- Bower
- PHP Coding Standards Fixer (optional)
- Navigate yor your web directory:
cd /var/www
- Create a new project:
composer create-project bobalazek/office-o-mat --no-scripts
- Configure database (and maybe other stuff if you want): app/configs/global.php or app/configs/global-local.php.dist (in case you will deploy it and need a different local configuration. Just rename the global-local.php.dist to global-local.php and set your own configuration)
- Run the following commands:
composer install
bin/console orm:schema-tool:install --force
(to install the database schema)bower update
(to install the front-end dependencies - you will need to install Bower first - if you haven't already)bin/console application:database:hydrate-data
(to hydrate some data)
- You are done! Start developing!
- We use the Doctrine database
- Navigate to your project directory:
cd /var/www/my-app
- Check the entities:
bin/console orm:info
(optional) - Update the schema:
bin/console orm:schema-tool:update --force
- Database updated!
With the bin/console application:database:hydrate-data
command, you will, per default hydrate 1 user (which you can change inside the app/fixtures/users.php
file):
- Admin User (with admin permissions)
- Username:
admin
oradmin@myapp.com
- Password:
test
- Username:
bin/console application:environment:prepare
- Will create the global-local.php and development-local.php files (if they do not exist)bin/console application:database:hydrate-data [-r|--remove-existing-data]
- Will hydrate the tables with some basic data, like: 2 users and 6 roles (the--remove-existing-data
flag will truncate all tables before re-hydrating them)bin/console application:storage:prepare
- Will prepare all the storage (var/) folders, like: cache, logs, sessions, etc.bin/console application:translations:prepare
- Prepares all the untranslated string into a separate (app/locales/{locale}_untranslated.yml) file. Accepts an locale argument (defaults to 'en_US' - usage:bin/console application:translations:prepare --locale de_DE
orbin/console application:translations:prepare -l de_DE
)
sudo php-cs-fixer fix .
- if you want your code fixed before each commit. You will need to install PHP Coding Standards Fixer
Office-O-Mat is licensed under the MIT license.