Fix some issues See merge request gamexperience/vision!29
Vision
This is a web panel to allow roleplay server to have an common interface for all publics services
Requirements
- Php ^8.0
- Php extensions : bz2, curl, fileinfo, gd, intl, mbstring, mysqli, openssl, pdo_mysql, xsl
- Git (easier way to install and update)
- Composer (https://getcomposer.org/download/)
- An SQL server
- A mail server (or a smtp to send mail)
- Donuts (because cops will use this panel)
Installation
-
Clone the repo with the tool of your choice
-
Enter the folder created
-
Copy the "dotEnvDemo" file to ".env", and set all required informations
-
Install all dependencies with composer
composer install --no-scripts -
Setup the database with symfony commands
info: If you use the symfony cli, you can replace "php bin/console" by "symfony console"
php bin/console doctrine:database:create php bin/console doctrine:migrations:migrateinfo: if you start your database with docker-compose, the database is already created, so ignore the "doctrine:database:create" command
-
Add a new group to Vision
php bin/console vision:addgroup -
Add a new rank to this new group
php bin/console vision:addrank -
Add a new user to vision, and choose group and rank
php bin/console vision:adduserinfo : the user is created with a random password, so at first time, you need to reset your password before login info : If this is your admin account; dont forget to answer yes while asking if user is admin
-
Start vision the way you want !
with symfony cli:
symfony serveor with php dev server :
php -S localhost:8000 -t publicand navigate to localhost:8000 with your web browser
Update
-
Enter the folder containing Vision
-
update by pulling the repo
git pull -
update the database with symfony commands
php bin/console doctrine:migrations:migrate -
clear cache
php bin/console cache:clear
Scalability
Vision is ready to be used in scaled architecture :
- user's sessions are stored in database
- just share the "public\uploads" folder between Visions instances to get uploaded files accross instances
Suggest an idea
Open an Enhancement issue to improve something already existing or > Open an Suggestion issue to suggest a new idea
Report a bug
You found something wrong on Vision ?
Contributing
Contributions are always welcome!
Start by installing Vision on your computer, then create a .env.local file with
APP_ENV=dev
Then, our way to do it :
-
install docker and docker compose on your computer
-
install symfony cli on your computer
-
use docker-compose to run a mysql server and MailDev
docker-compose up -d -
Setup database : read #5 on installation part you can also do the #6 - #7 to create groups and ranks, or use inclued fixtures :
symfony console d:f:l -
Create your first Admin user : read #8 on installation part
-
start the symfony web server
symfony servewith docker and symfony serve, symfony app will communicate the best way with docker
Base idea by
- @Xbird_
- @Ajanvier
Thanks
Thanks to all contributors of Vision We want to thanks too the community of the French Roleplay server GTRP, with a special message
Sources
- Symfony and packages : list in composer.json
- Logo font : https://fontsfree.net/garde-font-download.html
- Logo Icon : @Xbird_ with icon from FontAwesome
- Design : https://dashboardkit.io/
- Icons : cryptofont - feather - fontawesome - material
- Wysiwyg editor : TinyMCE
- Lightbox : https://trvswgnr.github.io/bs5-lightbox/