Skip to content

bobalazek/planetaria

Repository files navigation

README

Planetaria

The game!

Requirements & Tools & Helpers

Setup / Development

  • Navigate yor your web directory: cd /var/www
  • Clone this repo: git clone git@bitbucket.org:bobalazek/planetaria.git
  • Configure database (and maybe other stuff if you want): app/configs/global-local.php.dist (create your own global-local.php by copy / paste-ing this file)
  • Run the following commands:
    • composer install
    • bin/console orm:schema-tool:update --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!

Setup with Docker

  • Prepare config in ./app/configs/global-local.php.example and save it as ./app/configs/global-local.php
  • Run: docker compose up -d
  • SSH into the planetaria_web container and follow the steps outlined above

Database

  • We use the Doctrine database
  • Navigate to your project directory: cd /var/www/planetaria
  • Check the entities: bin/console orm:info (optional)
  • Update the schema: bin/console orm:schema-tool:update --force
  • Database updated!

Administrator login

With the bin/console application:database:hydrate-data command, you will, per default hydrate the following users (which you can change inside the app/fixtures/users.php file):

  • "borut"
    • Username: borut
    • Email: bobalazek124@gmail.com
    • Password: test

Commands

  • 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 or bin/console application:translations:prepare -l de_DE )

Gulp Command

First you'll need to install gulp and gulp's auto plugin loader sudo npm install gulp gulp-load-plugins

  • gulp optimize-tile-images - Optimizes the tile images

Other commands

License

Proprietary to Borut Balazek. All Rights reserved.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published