This repository contains the development data of the server for a cloud sync infrastructure service for Optolith Character Manager (https://github.com/elyukai/optolith-client).
๐ Homepage
This application needs
- PHP > 7.3
- composer latest
Recommendend add-ons
- symfony development kit
To prepare the application and install all dependencies use in a terminal:
composer install
๐ Configuration
Please add the following information to a an .env.local file
# App Mode
# 'prod' in production, will disable test tools and increase performance
APP_ENV=dev
# This secret string is 40 random characters that is used for CSRF protection.
# Generate one at: http://nux.net/secret
APP_SECRET=652f40901a1e2230e2b1ab86cc810835b13bc4a5
# Database configuration
# Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
# For an SQLite database, use: "sqlite:///%kernel.project_dir%/var/data.db"
# For a PostgreSQL database, use: "postgresql://db_user:[email protected]:5432/db_name?serverVersion=11&charset=utf8"
# IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml
# DATABASE_URL=mysql://db_user:[email protected]:3306/db_name?serverVersion=5.7
DATABASE_URL=sqlite:///%kernel.project_dir%/var/data.db
# Mail configuration
# While testing you can disable the need for an mail dsn with 'null://null'
MAILER_DSN=smtp://<mail-adress>:<password>@<smtp-server>>
๐ช Prepare database
Prepare sql terms for database depending on current condition
php bin/console make:migration
Apply changes to database
php bin/console doctrine:migrations:migrate
๐งช Development test run
php bin/console server:run
๐จ Deploy
For deployment on specific webservers, take a look into the symfony documentation
๐ค Onyxmoon (Philipp Borucki)
- Twitter: @onyxmoon_
- Github: @Onyxmoon
๐ค elyukai (Lukas Obermann)
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Give a โญ๏ธ if this project helped you!
Copyright ยฉ 2019 Onyxmoon (Philipp Borucki).
This project is Mozilla Public License 2.0 licensed.